Blog Center
  1. Home >
  2. Blog Detail

Yellowbrick.classifier import confusionmatrix

Feb 25, 2020 # Import what we need from sklearn.model_selection import train_test_split from yellowbrick.classifier import ConfusionMatrix # Split the data for validation X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=1) # Instantiate model and visualizer model = RandomForestClassifier(n_estimators=10, random_state=1

Get Price
Click avatar to contact us