Skip to content

Commit ff5510e

Browse files
committed
black refac'
1 parent a6f5187 commit ff5510e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

ml_skeleton_py/model/train.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@ def train(dataset_loc: str, model_dir: str, model_name: str = "lr") -> None:
6363

6464
auc_roc = round(training_score.mean(), 2)
6565
logger.info(f"Classifier: {pipeline.__class__.__name__}")
66-
logger.info(
67-
"Has a training score "
68-
+ f"of {auc_roc} roc_auc"
69-
)
66+
logger.info("Has a training score " + f"of {auc_roc} roc_auc")
7067
check_performance(auc_roc)
7168
# Serialize and dump trained pipeline to disk
7269
pred_result = {
@@ -83,9 +80,11 @@ def train(dataset_loc: str, model_dir: str, model_name: str = "lr") -> None:
8380

8481
def check_performance(auc_roc: float) -> None:
8582
if auc_roc < s.EXPECTED_MIN_AUC:
86-
raise Exception("The auc roc is less than the expected, "
87-
"please check your data manipulation or "
88-
"training parameters!")
83+
raise Exception(
84+
"The auc roc is less than the expected, "
85+
"please check your data manipulation or "
86+
"training parameters!"
87+
)
8988
else:
9089
# Performance is more than the expected
9190
pass

0 commit comments

Comments
 (0)