From 4ef234d1e8f10c48ee19e816131d442572346eca 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:15:57 +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 fc0176b 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 --- transaction_management/model_training.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/transaction_management/model_training.py b/transaction_management/model_training.py index 88cecc188..93f45448d 100644 --- a/transaction_management/model_training.py +++ b/transaction_management/model_training.py @@ -2,6 +2,7 @@ from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import roc_auc_score + def train_transaction_model(X_train, y_train): """ Trains the transaction machine learning model using the training data. @@ -10,6 +11,7 @@ def train_transaction_model(X_train, y_train): model.fit(X_train, y_train) return model + def evaluate_transaction_model(model, X_test, y_test): """ Evaluates the performance of the trained transaction machine learning model using the testing data.