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

intercepts still causing problems in print_model_weights #322

Closed
aoifecahill opened this issue May 19, 2016 · 1 comment
Closed

intercepts still causing problems in print_model_weights #322

aoifecahill opened this issue May 19, 2016 · 1 comment
Assignees

Comments

@aoifecahill
Copy link
Collaborator

Trying to print model weights for a logistic regression model that had fit_intercept set to False gives the following error:

Traceback (most recent call last):
  File "/tmp/conda_env/bin/print_model_weights", line 9, in <module>
    load_entry_point('skll==1.2', 'console_scripts', 'print_model_weights')()
  File "/Users/acahill/projects/skll/skll/utilities/print_model_weights.py", line 56, in main
    (weights, intercept) = learner.model_params
  File "/Users/acahill/projects/skll/skll/learner.py", line 726, in model_params
    if self.model.intercept_.any():
AttributeError: 'float' object has no attribute 'any'
@aoifecahill aoifecahill self-assigned this May 19, 2016
@desilinguist
Copy link
Member

Addressed by #323.

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

2 participants