The StockModeler class

The StockModeler class will make it easier for us to build and evaluate some simple financial models without needing to interact directly with the statsmodels package. In addition, we will reduce the number of steps that are needed to generate a model with the methods we create. The UML diagram for this class shows a rather simple class. Notice that we have no attributes:

This is because the StockModeler is a static class (meaning that we don't instantiate it) and has methods for both building models and doing some preliminary analysis of their performance. The class is in stock_analysis/stock_modeler.py. As usual, we ...

Get Hands-On Data Analysis with Pandas now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.