implicit icon indicating copy to clipboard operation
implicit copied to clipboard

Usage of the trained model on testing.

Open sedatkestepe opened this issue 3 years ago • 1 comments

Excuse my simple question but I couldn't locate how to test.

I've followed lastfm.py but couldn't find out at what point it uses existing training result. I am used to classical machine learning methods where you train a model then use this model when testing or evaluating some time later. In tutorial_lastfm.ipynb, during recommendation phase, freshly trained model is being used. In examples/lastfm.py, calculate_similar_artists finds similarities and writes this to a file. I expected this file to be used in calculate_recommendations so the recommendations will be made based on the knowledge. Since I couldn't detect this part in the code I wanted to ask to find out what I am missing. For me it looks like calculate_recommendations just takes an algorithm name, not the existing file or model.

sedatkestepe avatar Nov 09 '23 07:11 sedatkestepe

Hi @sedatkestepe, were you able to save/load the model? I came across the same issue: basically, it would be good to avoid training again if the model already "exists".

I'm unsure if @benfred had other suggestions.

Henddher avatar Sep 29 '25 20:09 Henddher