Skip to content

Commit

Permalink
Merge pull request #421 from HyunjunA/infvisfrontendmlbackend
Browse files Browse the repository at this point in the history
comment changes in skl_utils.py
  • Loading branch information
HyunjunA authored Nov 29, 2022
2 parents 9ec1ea9 + 3acaf32 commit b23d168
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions machine/learn/skl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,19 +491,23 @@ def generate_results(model, input_data,
scores['dtree_train_score'] = dtree_train_score

if mode == 'classification':
plot_confusion_matrix(tmpdir,
_id,
features,
target,
model.classes_,
cv_scores,
figure_export)
# plot pca
# this
# plot_confusion_matrix(tmpdir,
# _id,
# features,
# target,
# model.classes_,
# cv_scores,
# figure_export)

# this
# plot_pca_2d(tmpdir,_id,features,target)

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

# this
# plot_tsne(tmpdir,_id,features,target)

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

0 comments on commit b23d168

Please sign in to comment.