finstmt.forecast package¶
Subpackages¶
- finstmt.forecast.models package
- Submodules
- finstmt.forecast.models.average module
- finstmt.forecast.models.base module
- finstmt.forecast.models.cagr module
- finstmt.forecast.models.chooser module
- finstmt.forecast.models.manual module
- finstmt.forecast.models.prophet module
- finstmt.forecast.models.recent module
- finstmt.forecast.models.trend module
Submodules¶
finstmt.forecast.config module¶
- class finstmt.forecast.config.ForecastConfig(periods=5, freq='Y', prophet_kwargs=<factory>, balance=True, timeout=180, bs_diff_max=10000)[source]¶
Bases:
object
- __init__(periods=5, freq='Y', prophet_kwargs=<factory>, balance=True, timeout=180, bs_diff_max=10000)¶
- class finstmt.forecast.config.ForecastItemConfig(method='cagr', pct_of=None, make_forecast=True, prophet_kwargs=<factory>, cap=None, floor=None, manual_forecasts=<factory>, plug=False, balance_with=None)[source]¶
Bases:
object
The main configuration for a single item forecast
method: ‘auto’ currently only supported method, runs forecast with prophet pct_of: key of financial statement item to forecast this as a percentage of make_forecast: whether to forecast prophet_kwargs: kwargs to pass to prophet model cap: the maximum that the trend line should reach floor: the minimum that the trend line should reach manual_forecasts: manually set values to use instead of doing a forecast plug: Whether to make this item adjustable to balance the balance sheet balance_item: Whether this item is balanced in the balancing process after forecasting
and which item to balance it with (typically just set to ‘total_liab_and_equity’ for total assets and ‘total_assets’ for total liabilities and equity)
- __init__(method='cagr', pct_of=None, make_forecast=True, prophet_kwargs=<factory>, cap=None, floor=None, manual_forecasts=<factory>, plug=False, balance_with=None)¶
finstmt.forecast.dataframe module¶
finstmt.forecast.main module¶
- class finstmt.forecast.main.Forecast(orig_series, config, item_config, base_config, pct_of_series=None, pct_of_config=None)[source]¶
Bases:
object
The main class to represent a forecast of an individual item.
- __init__(orig_series, config, item_config, base_config, pct_of_series=None, pct_of_config=None)¶
-
base_config:
ItemConfig
¶
-
config:
ForecastConfig
¶
-
item_config:
ForecastItemConfig
¶
-
orig_series:
Series
¶
-
pct_of_config:
Optional
[ItemConfig
] = None¶
- property result: Series¶
- property series: Series¶
finstmt.forecast.plot module¶
finstmt.forecast.statements module¶
- class finstmt.forecast.statements.ForecastedFinancialStatements(income_statements, balance_sheets, calculate=True, auto_adjust_config=True, _combinator=<finstmt.combined.combinator.FinancialStatementsCombinator object>, forecasts=<factory>)[source]¶
Bases:
FinancialStatements
- __init__(income_statements, balance_sheets, calculate=True, auto_adjust_config=True, _combinator=<finstmt.combined.combinator.FinancialStatementsCombinator object>, forecasts=<factory>)¶