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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started