Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Brain.js add training to initial training without completely retraining

I am currently using Brain.js in a project and at the moment it has to be trained all in one go,

https://github.com/harthur/brain

Use train() to train the network with an array of training data. The network has to be trained with all the data in bulk in one call to train().

Which means if you want to add some new data later to improve it you have to retrain from the very beginning which is obviously not ideal.

Is there an option similar to brain.js which allows retraining without having to start from the beginning, or is anyone currently working on altering brain.js to allow this, or is this even possible (or would brain.js have to be completely rewritten), and if so would it be particularly difficult for someone new to javascript and programming in general (me) to add this in, and where would i even start.

Thanks for any help

Also, could someone with over 1500 reputation make a tag for brain.js, thanks

like image 370
Ryan White Avatar asked Oct 21 '22 22:10

Ryan White


1 Answers

The documentation seems to imply that any new information requires a complete retrain. https://github.com/nickpoorman/brain Nick Poorman's fork seems to have the ability to stream train, which has what you are looking for, it has yet to be merged with the main repository but it has a pull request.

like image 193
VoronoiPotato Avatar answered Oct 29 '22 23:10

VoronoiPotato