Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please what is wrong - import warnings warnings.filterwarnings ( ignore ) # Libraries to help with reading and manipulating data import numpy as
please what is wrong import warnings
warnings.filterwarningsignore
# Libraries to help with reading and manipulating data
import numpy as np
import pandas as pd
# Library to split data
from sklearn.modelselection import traintestsplit
# libaries to help with data visualization
import matplotlib.pyplot as plt
import seaborn as sns
# Removes the limit for the number of displayed columns
pdsetoptiondisplaymaxcolumns", None
# Sets the limit for the number of displayed rows
pdsetoptiondisplaymaxrows",
# Libraries different ensemble classifiers
from sklearn.ensemble import
BaggingClassifier,
RandomForestClassifier,
AdaBoostClassifier,
GradientBoostingClassifier,
StackingClassifier,
from xgboost import XGBClassifier
from sklearn.tree import DecisionTreeClassifier
# Libraries to get different metric scores
from sklearn import metrics
from sklearn.metrics import
confusionmatrix,
accuracyscore,
precisionscore,
recallscore,
fscore,
# To tune different models
from sklearn.modelselection import GridSearchCV
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