Hacker News new | ask | show | jobs
by bhargav_ 2760 days ago
This is such a cool project! Plus a pretty awesome example of using Rust for CLI's. I'm curious about the neural network though. Is that also written in Rust? Or are you embedding something else?
1 comments

Thanks! It is written in Rust. It's a very simple NN with one hidden layer and back propagation.
Just saw the implementation. It's goes a little over my head unfortunately, but I am curious about the affects of it. Did you compare the non-neural net version with the neural net version? If so what differences did you find?
I found that the neural network does a little better than a simple linear regression function for weighting the parameters. I train it on a few months of my own shell history to predict, based on the last commands, what I'll type next.
are the default weights I see in the code the result of your own local training?
Yup