Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
snehakumari321 committed Mar 5, 2023
1 parent 8997080 commit 1173719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/train_random_forest/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def go(args):

def plot_feature_importance(pipe, feat_names):
# We collect the feature importance for all non-nlp features first
feat_imp = pipe["random_forest"].
feature_importances_[: len(feat_names) - 1]
feat_imp = pipe["random_forest"].feature_importances_[
: len(feat_names) - 1]
# For the NLP feature we sum across all the TF-IDF dimensions into a global
# NLP importance
nlp_importance = sum(
Expand Down

0 comments on commit 1173719

Please sign in to comment.