FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fixed GraphCRF._set_size_joint_feature by ShigekiKarita · Pull Request #196 · pystruct/pystruct · GitHub

fixed GraphCRF._set_size_joint_feature - #196

Open
ShigekiKarita wants to merge 2 commits into
pystruct:masterfrom
ShigekiKarita:graph-crf-fix
Open

fixed GraphCRF._set_size_joint_feature#196
ShigekiKarita wants to merge 2 commits into
pystruct:masterfrom
ShigekiKarita:graph-crf-fix

Conversation

ShigekiKarita commented Jan 25, 2017
edited
Loading

Copy link
Copy Markdown

I fixed GraphCRF._set_size_joint_feature

The problem is that size_joint_feature set a float value for its shape.
For the details, please read this log.

python plot_grid_crf.py                                                                                              [17:09:30]
Traceback (most recent call last):
  File "plot_grid_crf.py", line 26, in <module>
    clf.fit(X, Y)
  File "/home/skarita/.pyenv/versions/pystruct/lib/python3.5/site-packages/pystruct-0.2.5-py3.5-linux-x86_64.egg/pystruct/learners/
one_slack_ssvm.py", line 409, in fit
    self.w = np.zeros(self.model.size_joint_feature)
TypeError: 'float' object cannot be interpreted as an integer

Copy link
Copy Markdown
Member

Thanks. Can you please add a regression test? Currently tests are passing on Python3.4

Copy link
Copy Markdown
Author

Hi. Is there any example or existing regression test?

Copy link
Copy Markdown

Just ran into this. Would it be possible to merge the fix without a regression test?

Copy link
Copy Markdown
Collaborator

Hi,
it'll be fixed in the coming release.
JL

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL