Skip to content

Commit

Permalink
Test black as GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasLuehrs committed Jan 23, 2025
1 parent bb862f9 commit 41fb34b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@
X = drug_df.drop("Drug", axis=1).values
y = drug_df.Drug.values

X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.3, random_state=125
)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=125)

print(
"#############################################################", "##############################################################"
)

## Pipeline
cat_col = [1,2,3]
num_col = [0,4]
cat_col = [1, 2, 3]
num_col = [0, 4]

transform = ColumnTransformer(
[
Expand Down Expand Up @@ -69,3 +70,4 @@

## Saving the model file
sio.dump(pipe, "./Model/drug_pipeline.skops")
print("test")

1 comment on commit 41fb34b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Model Metrics

Accuracy = 0.97, F1 Score = 0.88

Confusion Matrix Plot

Confusion Matrix

Please sign in to comment.