Skip to content

Commit

Permalink
Fixed generate_classification_plots
Browse files Browse the repository at this point in the history
  • Loading branch information
sukkritsharmaofficial committed Sep 22, 2020
1 parent edeb8e8 commit 199ddde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions libra/query/nlp_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,7 @@ def text_classification_query(self, instruction, drop=None,
# generates appropriate classification plots by feeding all
# information
logger("Generating plots")
plots = generate_classification_plots(
history, X, Y, model, X_test, y_test)
plots = generate_classification_plots(history)

if save_model:
save(model, save_model, save_path=save_path)
Expand Down
3 changes: 1 addition & 2 deletions libra/query/supplementaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ def tune_helper(
logger("->", 'Best Hyperparameters Found: {}'.format(returned_pms.values))
if generate_plots:
logger("Generating updated plots")
plots = generate_classification_plots(
history, data, target_column, returned_model, X_test, y_test)
plots = generate_classification_plots(history)


logger("Re-stored model under 'classification_ANN' key")
Expand Down

0 comments on commit 199ddde

Please sign in to comment.