Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -117,9 +117,9 @@ def check_data_drift():
|
|
117 |
mean_diff = abs(mean_feature_training_data - mean_feature_sample_logs)
|
118 |
|
119 |
if mean_diff > 2 * std_feature_training_data:
|
120 |
-
data_drift_status[feature] = "Data Drift Detected! Check Logs!"
|
121 |
else:
|
122 |
-
data_drift_status[feature] = "No Data Drift!"
|
123 |
|
124 |
# Categorical feature Type
|
125 |
|
@@ -129,9 +129,9 @@ def check_data_drift():
|
|
129 |
psi_value = psi(live_proportions, training_proportions)
|
130 |
|
131 |
if psi_value > 0.1:
|
132 |
-
data_drift_status['Type'] = "Data Drift Detected! Check Logs!"
|
133 |
else:
|
134 |
-
data_drift_status['Type'] = "No Data Drift!"
|
135 |
|
136 |
return pd.DataFrame.from_dict(data_drift_status)
|
137 |
|
|
|
117 |
mean_diff = abs(mean_feature_training_data - mean_feature_sample_logs)
|
118 |
|
119 |
if mean_diff > 2 * std_feature_training_data:
|
120 |
+
data_drift_status[feature] = ["Data Drift Detected! Check Logs!"]
|
121 |
else:
|
122 |
+
data_drift_status[feature] = ["No Data Drift!"]
|
123 |
|
124 |
# Categorical feature Type
|
125 |
|
|
|
129 |
psi_value = psi(live_proportions, training_proportions)
|
130 |
|
131 |
if psi_value > 0.1:
|
132 |
+
data_drift_status['Type'] = ["Data Drift Detected! Check Logs!"]
|
133 |
else:
|
134 |
+
data_drift_status['Type'] = ["No Data Drift!"]
|
135 |
|
136 |
return pd.DataFrame.from_dict(data_drift_status)
|
137 |
|