Disable verbose during predictions
See original GitHub issuefinal_prediction, all_predictions, all_nbest_json, scores_diff_json = model.predict(X=(test_examples, test_features))
Outputs the following verbose:
HBox(children=(IntProgress(value=0, description='Evaluating', max=2, style=ProgressStyle(description_width='in…
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
How to prevent printing predict_proba() output in Keras?
Pass verbose=0 to predict_proba to turn off verbose output.
Read more >How to get rid of tensorflow verbose messages with Keras
Index of predicted wrong data in Keras, how to find it? Simply, use: model.predict() pred = model.predict(x_test) indices = [i for .
Read more >What is "Verbose" in scikit-learn package of Python? [closed]
In some models like neural network and svm we can set it's value to true. This is the documentation: verbose : bool, default:...
Read more >autogluon.tabular.models
Returns True if the model is capable of inference on new data (if normal model) or has produced out-of-fold predictions (if bagged model)...
Read more >Parameters — LightGBM 3.3.3.99 documentation
path(s) of validation/test data, LightGBM will output metrics for these data ... used only in train , prediction and refit tasks or in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes. Actually the retriever has a
verbose
parameter that we can default toFalse
https://github.com/fmikaelian/cdQA/blob/3583256cbf73e8f3674f57182e824a5ca7c4f7be/cdqa/retriever/tfidf_sklearn.py#L61
For the rest, it is implemented in the BertQA’s
predict()
:https://github.com/fmikaelian/cdQA/blob/3583256cbf73e8f3674f57182e824a5ca7c4f7be/cdqa/reader/bertqa_sklearn.py#L1180-L1183
We add a if condition based on
verbose_logging
param:https://github.com/fmikaelian/cdQA/blob/3583256cbf73e8f3674f57182e824a5ca7c4f7be/cdqa/reader/bertqa_sklearn.py#L967
I still think we can improve this.
The picture below shows that the predictions are still too verbose