INNER CODE UNIT · Python

__str__

ScottfreeLLC/AlphaPy · alphapy/analysis.py:129

    def __str__(self):
        return self.name


#
# Function run_analysis
#

def run_analysis(analysis, lag_period, forecast_period, leaders,
                 predict_history, splits=True):
    r"""Run an analysis for a given model and group.

    First, the data are loaded for each member of the analysis group.
    Then, the target value is lagged for the ``forecast_period``, and
    any ``leaders`` are lagged as well. Each frame is split along
    the ``predict_date`` from the ``analysis``, and finally the
    train and test files are generated.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…