Fix predict.py stuck at help page - #183
Conversation
|
Hi @liuyanyi . Thanks for your contribution! For the code you modified, it's worth noticing that the return value ...
if overall_stats:
# generate overall statistics on doc scores
overall = pred.select('doc_score').toPandas().describe(include='all')
# export to result report file
overall.to_csv(os.path.join(result_path, 'overall.csv'))
overall.to_markdown(os.path.join(result_path, 'overall.md'))
return overall
...BTW, according to the Contributor License Agreement, you need to read and accept it before your contribution is accepted.
If you have any further thoughts or issues, please let us know~ |
You are right, there should be a return statment when overall_stats=True |
HYLcool
left a comment
There was a problem hiding this comment.
Excellent! Thanks for your contribution again~
In quality classifier,
predict.pywill stuck at a help page after all procecss done. I remove the last return, it works fine.