Stage 1/3 - train our model
I was curious to see if ml5 nueral network can help predict the next president,
so i gathered data of president Vs opponent in a file.
now lets use this data.
Stage 2/3 - test our model
Once model is trained, i run it again on all presidents, to see if for each,
the model would predict a win. you can open dev tools to see how it works.
Stage 3/3 - play with our model
To improve prediction, i saw we needed more parametrs like: job creation.
its still not 100% perfect, but you can use it on your favorite candiate:
state