Welcome to the ml-datapreprocessing-template !
Added templates for :
- Data preprocessing
- Classification problems
Sample Classifications and regressions:
from sklearn.tree import DecisionTreeRegressor
regressor = DecisionTreeRegressor(random_state = 0)
from sklearn.tree import DecisionTreeClassifier
classifier = DecisionTreeClassifier(criterion = 'entropy', random_state = 0)
from sklearn.neighbors import KNeighborsClassifier
classifier = KNeighborsClassifier(n_neighbors = 10)
from sklearn.naive_bayes import GaussianNB
classifier = GaussianNB()
from sklearn.svm import SVC
clf_rbf = SVC(kernel = 'rbf', random_state=0)
clf_lin = SVC(kernel = 'linear', random_state=0)
clf_pol = SVC(kernel = 'poly', random_state=0, degree=2)