Computer scienceData scienceInstrumentsScikit-learnTraining ML models with scikit-learnClassification in scikit-learn

Random forest in scikit-learn

Model application

Report a typo

Let's say that we have already trained the model for irises classification and evaluated its quality.
Now it's time to put it into practice and predict the class of the new object with the following characteristics:

  • sepal length = 5.5
  • sepal width = 2.5
  • petal length = 3.3
  • petal width = 1.4

In the usual format, it will be written like this: [5.5, 2.5, 3.3, 1.4]

To train the model, use all the dataset as a training set and the same parameters as in the topic:
n_estimators=25, max_features=3, random_state=42

Your task is to write the correct class label of the given object using RandomForestClassifier.

Enter a number
___

Create a free account to access the full topic