Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXPERIMENT: CML Use-case -- Change classifier #62

Draft
wants to merge 1 commit into
base: dev/cml-experiment
Choose a base branch
from
Draft
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
32 changes: 16 additions & 16 deletions cml_example/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,23 @@
###############################################################################
# Train a scikit-learn estimator model -- assuming as .predict_proba
print("Training model")
model = LogisticRegression(
C=50. / train_samples,
penalty='l1',
solver='saga',
tol=0.1,
# important to make model training some sort of deterministic
random_state=0,
)
# model = MLPClassifier(
# hidden_layer_sizes=(50,),
# # max_iter=10,
# alpha=1e-4,
# solver='sgd',
# verbose=10,
# random_state=1,
# learning_rate_init=.1
# model = LogisticRegression(
# C=50. / train_samples,
# penalty='l1',
# solver='saga',
# tol=0.1,
# # important to make model training some sort of deterministic
# random_state=0,
# )
model = MLPClassifier(
hidden_layer_sizes=(50,),
# max_iter=10,
alpha=1e-4,
solver='sgd',
verbose=10,
random_state=1,
learning_rate_init=.1
)
model.fit(X_train, y_train)
print("Training model -- Done")

Expand Down