1import sklearn
2import pandas as pd
3from sklearn import datasets
4iris=datasets.iris()
5
1import nltk
2import sklearn
3
4print('The nltk version is {}.'.format(nltk.__version__))
5print('The scikit-learn version is {}.'.format(sklearn.__version__))
6
7# The nltk version is 3.0.0.
8# The scikit-learn version is 0.15.2.
1# Define the model
2model1 = LogisticRegression()
3
4# Check the name of the model
5# It is useful when we are dealing with many alternative models
6model1.__class__.__name__