Skip to content

Commit

Permalink
style: format code with Autopep8, Black, ClangFormat, dotnet-format, …
Browse files Browse the repository at this point in the history
…Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf

This commit fixes the style issues introduced in 27ad1f8 according to the output
from 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.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Jul 20, 2024
1 parent 59d7dff commit 3978275
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sidra_chain_integration/sidra_chain_data_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import pandas as pd
from sidra_chain_api import SidraChainAPI


class SidraChainDataProcessor:
def __init__(self, sidra_chain_api: SidraChainAPI):
self.sidra_chain_api = sidra_chain_api
Expand All @@ -20,6 +21,7 @@ def process_chain_data(self, chain_data: dict):
def train_model(self, df: pd.DataFrame):
# Train a machine learning model using the processed chain data
from sklearn.ensemble import RandomForestRegressor

model = RandomForestRegressor(n_estimators=100, random_state=42)
model.fit(df.drop('target', axis=1), df['target'])
model.fit(df.drop("target", axis=1), df["target"])
return model

0 comments on commit 3978275

Please sign in to comment.