I created a recommendation system using lightFM on Google Colab. I want to deploy this model using Node JS. I read this article and tried the method recommended here. It recommended using tensorflow.js. For that the model needed to be saved and this is where the problem arose since I wrote my model using lightFM.
Although I found that the model in the article was written in tensorflow, I tried the same in my model and was given the following error:
AttributeError Traceback (most recent call last)
<ipython-input-41-a3439455f9ca> in <module>
----> 1 model.save("model.h5")
AttributeError: 'LightFM' object has no attribute 'save'
Can anyone provide me suggestions on how to save the model or other methods to deploy in node js?