Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ML - Empty Results
#3
The code uses third-party machine learning libraries, so it is likely nothing
to improve with those. However, I suspect that the bottleneck is for-loop (line No. 23);
I don't know exactly, but you can try to pass to afn.score the entire array test_reviews[sample_review_ids]. If afn.score is implemented, e.g. in C, the computations will
be slightly faster.
Reply


Messages In This Thread
ML - Empty Results - by BadWhite - May-18-2020, 02:10 AM
RE: ML - Empty Results - by BadWhite - May-19-2020, 12:13 AM
RE: ML - Empty Results - by scidam - May-19-2020, 10:28 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020