All data was provided by FINANCIAL MODELING PREP
FINANCIAL MODELING PREP is stock API | historical data API | financial statements API
Below you will find excerpts from our codes. After pulling data from API, we did data cleaning and data manipulation to prepare dataframes for Machine Learning. This included creating a loop of Quarterly Reports' published statistics. Using these ratios we created a Buy/Sell/Hold determination based on 3% growth or shrink and inserted it into the dataframe.
We created a Machine Learning Program to learn from the aforementioned data in order to predict out to the next quarter. We ran accuracy tests and while the accuracy was low, the machine was learning as we tightened our margins and calrified more data inputs. Below you will find our Accuracy Tests.
We created a Confusioin Matrix to show our Final Determinations and evaluate the outcomes.