Skip to content

Error Message While Calling fit() Method #11

@tasyacute

Description

@tasyacute

AttributeError: can't set attribute

It pointed out the error come from fit( ) method as

def fit(self, X, y=None):
self.best_estimator_ = None
--> self.best_score_ = -1
self.best_params_ = None
for possible_params in self.possible_params:
self.fit(X, y, possible_params)
if self.refit:
self.best_estimator
= clone(self.estimator)
self.best_estimator_.set_params(**self.best_params_)
self.best_estimator_.fit(X, y)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions