Skip to content

Scikit Learn

Alex Albenstetter edited this page Jun 3, 2023 · 5 revisions

Classification

Decision Tree Classifier

from sklearn import tree
from sklearn.tree import DecisionTreeClassifier

Random Forest Classifier

Import

from sklearn.ensemble import RandomForestClassifier

Support Vector Classifier

Import

from sklearn.svm import SVC

Preprocessing

Import

from sklearn.preprocessing import StandardSclaer, LabelEncoder
from sklearn.model_selection import train_test_split
Clone this wiki locally