es.davy.ai

Preguntas y respuestas de programación confiables

¿Tienes una pregunta?

Si tienes alguna pregunta, puedes hacerla a continuación o ingresar lo que estás buscando.

Tag: YELLOWBRICK

El objeto ‘RandomForestClassifier’ no tiene el atributo ‘target_type_’.

Cuando ejecuto este fragmento de código: from yellowbrick.classifier import ROCAUC from sklearn.ensemble import RandomForestClassifier rf = RandomForestClassifier(**{“max_features”: 0.4, “n_estimators”:15,”min_samples_leaf”: 0.1,”random_state”:42}) rf.fit(X_train, y_train) roc_viz = ROCAUC(rf) roc_viz.score(X_test, y_test) Obtengo este error: ‘RandomForestClassifier’ object has no attribute ‘targettype’ ¿Alguien tiene alguna idea? Gracias. Y cuando depuro, en la instrucción roc_viz = ROCAUC(rf) . . . Read more