Question: What are the functions of the following python codes? from sklearn.tree Import Decision Tree Classifier classifier - Decision TreeClassifier() classifier.fit(X_train, y_train) Generate X_train and y_train
What are the functions of the following python codes? from sklearn.tree Import Decision Tree Classifier classifier - Decision TreeClassifier() classifier.fit(X_train, y_train) Generate X_train and y_train that will be used as training datasets for building a classification tree in the next step Generate predicted outcomes for input dataset X_train using an existing classification tree Examine the fitness of X_train and y_train to an existing classification tree Build a classification tree using training datasets X_train and y_train
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
