Sklearn Model to JS
Question:
I am working on a sentiment analysis project, where the backbone is ofc a model. This was developed using sklearn’s off the shelf solutions (MLP) trained with my data. I would like to "save" this model and use it again in JavaScript.
Adam
I have looked at pickle for python but I’m not sure how i could use this for JS. This is a chrome extension I am developing so I would rather not set up and server. I should add this is course work, so spending money is a no!
Answers:
After some research I pretty much determined its not possible using sklearn in JS. My solution was to use keras and use tensorflow JS.
Alternatively, I have learnt the maths behind the network and "raw" code it using no libraries. This took a lot longer than just converting everything to keras although.
I am working on a sentiment analysis project, where the backbone is ofc a model. This was developed using sklearn’s off the shelf solutions (MLP) trained with my data. I would like to "save" this model and use it again in JavaScript.
Adam
I have looked at pickle for python but I’m not sure how i could use this for JS. This is a chrome extension I am developing so I would rather not set up and server. I should add this is course work, so spending money is a no!
After some research I pretty much determined its not possible using sklearn in JS. My solution was to use keras and use tensorflow JS.
Alternatively, I have learnt the maths behind the network and "raw" code it using no libraries. This took a lot longer than just converting everything to keras although.