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

Raise NotSupportedException for attempt to train YAKE #491

Merged
merged 3 commits into from
May 27, 2021

Conversation

juhoinkinen
Copy link
Member

I noticed that a user could try to train a Yake project (which is unnecessary Yake being unsupervised algorithm), but training would seem to succeed, although actually nothing happens.

A more correct behavior is to raise NotSupportedException when training a Yake project is attempted, as in the case of the Ensemble backend.

@juhoinkinen juhoinkinen added this to the 0.53 milestone May 27, 2021
@codecov
Copy link

codecov bot commented May 27, 2021

Codecov Report

Merging #491 (0706a47) into master (322e014) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #491      +/-   ##
==========================================
+ Coverage   99.47%   99.49%   +0.01%     
==========================================
  Files          76       76              
  Lines        5513     5520       +7     
==========================================
+ Hits         5484     5492       +8     
+ Misses         29       28       -1     
Impacted Files Coverage Δ
annif/backend/yake.py 98.27% <100.00%> (+0.03%) ⬆️
tests/test_backend_yake.py 100.00% <100.00%> (ø)
annif/backend/stwfsa.py 100.00% <0.00%> (+1.51%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 322e014...0706a47. Read the comment docs.

Copy link
Member

@osma osma left a comment

Choose a reason for hiding this comment

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

LGTM!

@sonarcloud
Copy link

sonarcloud bot commented May 27, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@juhoinkinen juhoinkinen merged commit 0e7329f into master May 27, 2021
@juhoinkinen juhoinkinen deleted the raise-error-for-training-yake branch May 27, 2021 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants