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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
setup_env.py
3000-env
.DS_Store
.DS_Store
.venv/
Binary file not shown.
Binary file added __pycache__/mod06_deanonymize.cpython-313.pyc
Binary file not shown.
20 changes: 13 additions & 7 deletions mod02_build_bot_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,20 @@
def train_model(X, y, seed=seed):
"""
Build a GBM on given data

"""
model = GradientBoostingClassifier(
learning_rate=0.1,
n_estimators=100,
max_depth=8,
subsample=1,
min_samples_leaf=1,
random_state=seed
n_estimators=800,
max_depth=4,
learning_rate=0.03,
subsample=0.85,
min_samples_leaf=15,
min_samples_split=30,
max_features="sqrt",
validation_fraction=0.15,
n_iter_no_change=25,
random_state=seed,
)
Comment on lines 8 to 24
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

PR title indicates this is focused on deanonymization, but this file changes the bot predictor model hyperparameters as well. Consider splitting these unrelated changes into separate PRs to keep review scope focused and reduce merge risk.

Copilot uses AI. Check for mistakes.

model.fit(X, y)
return model
return model
Loading