To obtain a more objective evaluation of our model, we can create another training and testing set and recalculate the metric.
Let's continue working with the iris flower dataset.
You need to perform the following steps:
- Load the iris flower dataset.
- Split the data into training and testing sets using the
train_test_splitfunction with the following parameters:test_size=0.35,random_state=92. - Create an instance of the Logistic Regression model and fit it with the training set.
- Obtain the predictions for the test set and evaluate the model's quality using the precision metric with the parameter
average='macro'.
Your task is to write the value of the precision metric, rounded to four digits after the decimal point.