Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Attribute named _set_params #94

Open
nik90 opened this issue Oct 17, 2013 · 2 comments
Open

No Attribute named _set_params #94

nik90 opened this issue Oct 17, 2013 · 2 comments

Comments

@nik90
Copy link

nik90 commented Oct 17, 2013

AttributeError: 'UserBasedRecommender' object has no attribute "_ set_ params"
AttributeError: 'ItemBasedRecommender' object has no attribute _ set_ params

The tests results:

Ran 100 tests in 9.540s

FAILED (errors=27, failures=2)

crab / scikits / crab / recommenders / svd / classes.py
line: 289

crab / scikits / crab / recommenders / knn / classes.py
line:138

and a whole bunch of other places. But same problem.

I am running on mac with git clone of repository.

@cjauvin
Copy link

cjauvin commented Apr 4, 2014

This project seems unfortunately neglected/abandoned.. but here's what I did to make the doc example at least work with a more recent version of scikit-learn (0.14):

  1. https://github.com/muricoca/crab/blob/master/scikits/crab/base.py#L11: replace by from sklearn.base import BaseEstimator
  2. https://github.com/muricoca/crab/blob/master/scikits/crab/recommenders/knn/classes.py#L138 and https://github.com/muricoca/crab/blob/master/scikits/crab/recommenders/knn/classes.py#L600: replace by self.set_params(**params) (remove the leading underscore)

Also note that there's an error in the doc example: from crab.recommenders.knn import UserBasedRecommender has to be from scikits.crab.recommenders.knn import UserBasedRecommender.

@onestarshang
Copy link

i replaced , but it did not work....

then i reloaded my notebook, it was ok...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants