Skip to content

Commit

Permalink
Freature importantce graph fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ms8909 committed Oct 7, 2020
1 parent dd6419f commit f478688
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
Binary file modified lib/__pycache__/dashboard.cpython-37.pyc
Binary file not shown.
Binary file modified lib/__pycache__/plotly_graphs.cpython-37.pyc
Binary file not shown.
2 changes: 2 additions & 0 deletions lib/plotly_graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def distributions(self, df, variable_name):
def global_feature_impact_graph(self, df,classification=False):

if classification==True:
df['class_name'] = df['class_name'].apply(str)

fig = px.bar(df, x="VariableName", y="Impact_Value",
color='class_name', barmode='group',
Expand Down Expand Up @@ -173,6 +174,7 @@ def global_feature_impact_graph(self, df,classification=False):
def global_feature_importance_graph(self, df, classification=False):

if classification==True:
df['class_name'] = df['class_name'].apply(str)

fig = px.bar(df, x="VariableName", y="Impact_Value",
color='class_name', barmode='group',
Expand Down

0 comments on commit f478688

Please sign in to comment.