pgurazada1 commited on
Commit
867d908
·
verified ·
1 Parent(s): e2e9ab4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -81,9 +81,12 @@ def check_model_drift():
81
  def plot_target_distributions():
82
  sample_df = get_data()
83
 
84
- figure, axes = plt.subplots(2, 1)
85
  sns.countplot(x=ytrain, stat='proportion', ax=axes[0])
 
 
86
  sns.countplot(x=sample_df.prediction, stat='proportion', ax=axes[1])
 
87
 
88
  return figure
89
 
 
81
  def plot_target_distributions():
82
  sample_df = get_data()
83
 
84
+ figure, axes = plt.subplots(2, 1, figsize=(9, 5))
85
  sns.countplot(x=ytrain, stat='proportion', ax=axes[0])
86
+ axes[0].set_title("Distribution of targets in training data")
87
+
88
  sns.countplot(x=sample_df.prediction, stat='proportion', ax=axes[1])
89
+ axes[1].set_title("Distribution of predicted targets from the deployed model")
90
 
91
  return figure
92