Machine Learning Project: Using Linear Regression to Predict Some Stock Prices of PETR4
This was my first project applying Machine Learning to do something, of course I won’t get rich because of this algorithm, but it’s so cool to see how the technology works.
Some piece of code If you run my code, you’ll see that the accuracy value it’s something like 0.80~0.85, it’s meaning that the algorithm can be assertive in 80%~85% of your predicting values.
# This is an interesting value, this determines how much our algorithm can be "trusted" in percentage
accuracy = clf.score(X_test, y_test)
Final work
You can see the source code on: link