mljs / random-forest

Random forest for classification and regression.
https://mljs.github.io/random-forest/
MIT License
61 stars 21 forks source link

Cannot load the saved Model #30

Closed VishakAmin closed 3 years ago

VishakAmin commented 3 years ago

Saved the Random Forest model using toJSON() but while trying to load the saved model it gives an error of (node:38489) UnhandledPromiseRejectionWarning: TypeError: classifier.load is not a function (classifier being the Random forest classifier)

VishakAmin commented 3 years ago

Got it, as load was a static method had to write it differently.