Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf #174

Merged
merged 1 commit into from
May 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions market_conditions_analysis/market_conditions_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@ def __init__(self, data_preparation, time_series_analysis):
self.data_preparation = data_preparation
self.time_series_analysis = time_series_analysis

def analyze_market_conditions(self, data_file, target_column, exogenous_variables, num_periods):
def analyze_market_conditions(
self, data_file, target_column, exogenous_variables, num_periods
):
"""
Analyzes market conditions using the time series analysis model.
"""
data = self.data_preparation.prepare_data(data_file)

model_fit = self.time_series_analysis.fit_model(data, target_column, exogenous_variables)
market_trends = self.time_series_analysis.predict_market_trends(data, target_column, exogenous_variables, num_periods)
model_fit = self.time_series_analysis.fit_model(
data, target_column, exogenous_variables
)
market_trends = self.time_series_analysis.predict_market_trends(
data, target_column, exogenous_variables, num_periods
)

return market_trends
Loading