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

Increase scikit-learn version #1635

Merged
merged 4 commits into from Jan 23, 2019
Merged

Increase scikit-learn version #1635

merged 4 commits into from Jan 23, 2019

Conversation

MetcalfeTom
Copy link
Contributor

@MetcalfeTom MetcalfeTom commented Jan 22, 2019

scikit-learn==0.20.2 has a nice output_dict feature we can use in our evaluate script, but it was causing errors with our classifier

Proposed changes:

  • Transpose intent_ids vector
  • Pin scikit-learn==0.20.2

Status (please check what you already did):

  • made PR ready for code review
  • updated the changelog

@tmbo tmbo requested review from tmbo and removed request for akelad January 22, 2019 15:09
@@ -178,7 +178,7 @@ def process(self, message, **kwargs):
else:
X = message.get("text_features").reshape(1, -1)
intent_ids, probabilities = self.predict(X)
intents = self.transform_labels_num2str(intent_ids)
intents = self.transform_labels_num2str(intent_ids.T)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that correct or should it be np.ravel(intent_ids)?

Also, after this change, what happens if we run with 0.19, does it still work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've included the change, but we flatten this vector in the following line so it's not an issue
Just ran the script with 0.19, it still passes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, thanks 👍

@codeclimate
Copy link

codeclimate bot commented Jan 22, 2019

Code Climate has analyzed commit 3338ee2 and detected 0 issues on this pull request.

View more on Code Climate.

Copy link
Member

@tmbo tmbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make sure to also fix the version pinning in setup.py - after that it is good to merge

@MetcalfeTom MetcalfeTom mentioned this pull request Jan 22, 2019
4 tasks
@tmbo tmbo merged commit 5223ecc into master Jan 23, 2019
@tmbo tmbo deleted the sklearn_badinputshape branch January 23, 2019 09:23
tmbo pushed a commit that referenced this pull request Mar 21, 2019
Flag config parameters passed to agent.train(), remove config params from training params
tmbo pushed a commit that referenced this pull request Mar 21, 2019
taytzehao pushed a commit to taytzehao/rasa that referenced this pull request Jul 14, 2023
…aHQ#1635)

Bumps [github.com/moby/buildkit](https://github.com/moby/buildkit) from 0.11.2 to 0.11.3.
- [Release notes](https://github.com/moby/buildkit/releases)
- [Commits](moby/buildkit@v0.11.2...v0.11.3)

---
updated-dependencies:
- dependency-name: github.com/moby/buildkit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

None yet

2 participants