![]() ![]() py in fit ( self, X, y, sample_weight ) 207 208 """Ģ10 if isinstance(y, np.ndarray) and len(y.shape) > 1 and y.shape > 1:Ģ11 raise NotImplementedError('Multilabel and multi-output' fit ( X_train, y_train ) 20 print ( ec1. score ( X_test, y_test )) - ValueError Traceback ( most recent call last ) in 17 18 ec1 = VotingClassifier ( estimators =, voting = 'hard' ) -> 19 ec1 = ec1. X_train, y_train, X_test, y_test = train_test_split ( data, labels, test_size = 0.2, random_state = 2021, shuffle = True )Ĭ1 = LogisticRegression ( multi_class = 'multinomial', random_state = 1 )Ĭ2 = RandomForestClassifier ( n_estimators = 50, random_state = 1 )Įc1 = VotingClassifier ( estimators =, voting = 'hard' )Įc1 = ec1. datasets import load_breast_cancerįrom sklearn. ensemble import RandomForestClassifier, VotingClassifier from sklearn. naive_bayes import GaussianNB from sklearn. ![]() linear_model import LogisticRegression from sklearn. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |