Skip to content

Commit 4e46244

Browse files
authored
Merge pull request #18 from MLOPsStudyGroup/RandomForestClassifier
Random Forest Experiment
2 parents d8ef0c1 + e114436 commit 4e46244

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/model.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,15 @@ def train(data, num_estimators, isDataFrame=False):
4343
pipe = Pipeline(
4444
[
4545
("scaler", StandardScaler()),
46-
("LR", LogisticRegression(random_state=0, max_iter=num_estimators)),
46+
(
47+
"RFC",
48+
RandomForestClassifier(
49+
criterion="gini",
50+
max_depth=10,
51+
max_features="auto",
52+
n_estimators=num_estimators,
53+
),
54+
),
4755
]
4856
)
4957

0 commit comments

Comments
 (0)