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

print_model_weights does not work for Logistic Regression models without intercepts. #250

Closed
desilinguist opened this issue Aug 17, 2015 · 1 comment
Assignees

Comments

@desilinguist
Copy link
Member

Here's the error I get:

Traceback (most recent call last):
  File "/Users/nmadnani/anaconda/envs/garbage/bin/print_model_weights", line 6, in <module>
    sys.exit(main())
  File "/Users/nmadnani/anaconda/envs/garbage/lib/python3.4/site-packages/skll/utilities/print_model_weights.py", line 55, in main
    (weights, intercept) = learner.model_params
  File "/Users/nmadnani/anaconda/envs/garbage/lib/python3.4/site-packages/skll/learner.py", line 712, in model_params
    intercept = dict(zip(label_list, self.model.intercept_))
TypeError: zip argument #2 must support iteration
@dan-blanchard
Copy link
Contributor

Fixed by #251.

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