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

uncomment plot_pca, comment learning curve and tsne #429

Merged
merged 1 commit into from
Dec 1, 2022
Merged
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
10 changes: 6 additions & 4 deletions machine/learn/skl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ def generate_results(model, input_data,
model = clf.best_estimator_
else:
print("param_grid else")

# (does not pass the unit test)
# plot_learning_curve(tmpdir,_id, model,features,target,cv,return_times=True)
model.fit(features, target)

Expand Down Expand Up @@ -500,14 +502,14 @@ def generate_results(model, input_data,
# cv_scores,
# figure_export)

# this pca 2d
# plot_pca_2d(tmpdir,_id,features,target)
# this pca 2d
plot_pca_2d(tmpdir,_id,features,target)

# plot_pca_3d(tmpdir,_id,features,target)
# plot_pca_3d_iris(tmpdir,_id,features,target)

# this tsne 2d
plot_tsne(tmpdir,_id,features,target)
# this tsne 2d (does not pass the unit test)
# plot_tsne(tmpdir,_id,features,target)

if type(model).__name__ == 'Pipeline':
step_names = [step[0] for step in model.steps]
Expand Down