NatLibFi / Annif

Annif is a multi-algorithm automated subject indexing tool for libraries, archives and museums.
https://annif.org
Other
201 stars 41 forks source link

fix: make NN ensemble suggest operations silent #620

Closed osma closed 2 years ago

osma commented 2 years ago

This one-line PR makes NN ensemble suggest operations silent. They used to be quiet at least in Annif 0.57, but apparently something changed in TensorFlow and now there are messages like this:

1/1 [==============================] - 0s 15ms/step 
1/1 [==============================] - 0s 15ms/step 
1/1 [==============================] - 0s 15ms/step
sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    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

codecov[bot] commented 2 years ago

Codecov Report

Merging #620 (e0ca692) into master (48b23f7) will increase coverage by 0.00%. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #620   +/-   ##
=======================================
  Coverage   99.61%   99.61%           
=======================================
  Files          87       87           
  Lines        6034     6038    +4     
=======================================
+ Hits         6011     6015    +4     
  Misses         23       23           
Impacted Files Coverage Δ
annif/backend/nn_ensemble.py 99.29% <ø> (ø)
tests/test_vocab.py 100.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.