Answered step by step
Verified Expert Solution
Question
1 Approved Answer
where is the problem (i build confusion matrix for my data set) import pandas as pd from sklearn.model_selection import train_test_split from sklearn.metrics import confusion_matrix from
where is the problem (i build confusion matrix for my data set)
import pandas as pd from sklearn.model_selection import train_test_split from sklearn.metrics import confusion_matrix from sklearn. ensemble import RandomForestClassifier df= pd.read_excel( "Credit Card.xlsx") y=df[ "Target_Column_Name" ] X_train, X_test, y_rain, \( y_{\text {_test }}= \) train_test_split(X, y, test_size=0.2, random_state=42) clf = RandomForestClassifier (random_state=42) clf.fit(X_train, y_train) ypred=clf,predict(Xtest ) conf_matrix = confusion_matrix(y_test, ypred ) print(conf_matrix) Traceback (most recent call last): File "C:/Users/Afnan/PycharmProjects/project.py", line 1, in import pandas as pd ModuleNotFoundError: No module named 'pandas' Process finished with exit code 1Step 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