Skip to content

Commit

Permalink
Merge pull request #174 from KOSASIH/deepsource-transform-3bc04cf1
Browse files Browse the repository at this point in the history
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
  • Loading branch information
KOSASIH authored May 12, 2024
2 parents f610f2f + 3a6c6c5 commit 05703f1
Showing 1 changed file with 9 additions and 3 deletions.
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

0 comments on commit 05703f1

Please sign in to comment.