From 7192a9503926fb9c006409b92d7b8941afb5026c Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sat, 11 May 2024 13:07:50 +0000 Subject: [PATCH] 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 This commit fixes the style issues introduced in acf68cd 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 --- ai/risk_assessment/model_training.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ai/risk_assessment/model_training.py b/ai/risk_assessment/model_training.py index 0cb70c619..1b16b7a05 100644 --- a/ai/risk_assessment/model_training.py +++ b/ai/risk_assessment/model_training.py @@ -2,6 +2,7 @@ from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import roc_auc_score + def train_model(X_train, y_train): """ Trains the machine learning model using the training data. @@ -10,6 +11,7 @@ def train_model(X_train, y_train): model.fit(X_train, y_train) return model + def evaluate_model(model, X_test, y_test): """ Evaluates the performance of the trained model using the testing data.