Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ seaborn
matplotlib
joblib
numpy
xgboost
17 changes: 3 additions & 14 deletions src/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from sklearn.metrics import precision_recall_curve
from sklearn.metrics import roc_curve
from sklearn.metrics import roc_auc_score
from xgboost import XGBClassifier
import matplotlib.pyplot as plt


Expand All @@ -29,20 +30,8 @@ def train(data, num_estimators, isDataFrame=False):
X, y, test_size=0.3, random_state=0
)

pipe = Pipeline(
[
("scaler", StandardScaler()),
(
"RFC",
RandomForestClassifier(
criterion="gini",
max_depth=10,
max_features="auto",
n_estimators=num_estimators,
),
),
]
)
pipe = Pipeline([('scaler', StandardScaler()), ('XGB', XGBClassifier())])


training_logs = pipe.fit(X_train, y_train)

Expand Down