Question: Use Jupyter Notebook Python. Show the coding progress Load the Iris dataset (the objective is to predict 3 different types of iris flowers) from scikit-learn
Use Jupyter Notebook Python. Show the coding progress
Load the Iris dataset (the objective is to predict 3 different types of iris flowers) from scikit-learn
https://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_iris.html
1) Use a bagging algorithm and a boosting algorithm to achieve the best accuracy score in cross-validation (cv = 5).
2) Creating polynomials (to the degree of your choice, affecting the variables of your choice) as extra variables check if the accuracy score can be improved or not.
import numpy as np import pandas as pd from sklearn import datasets iris = datasets.load_iris() X = iris.data y = iris.target np.random.seed(42)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
