Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -192,7 +192,7 @@ def predict_inverse(hardness_target, ys_target, request: gr.Request):
|
|
| 192 |
[el['name'] for el in domain],
|
| 193 |
[[x] for x in x_best]))
|
| 194 |
optimized_x = pd.DataFrame.from_dict(best_params)
|
| 195 |
-
plot = utils.interpret(optimized_x)
|
| 196 |
#for c in optimized_x.columns:
|
| 197 |
# if c in continuous_variables:
|
| 198 |
# optimized_x[c]=optimized_x[c]*(scaling_factors[c][1]-scaling_factors[c][0])+scaling_factors[c][0]
|
|
|
|
| 192 |
[el['name'] for el in domain],
|
| 193 |
[[x] for x in x_best]))
|
| 194 |
optimized_x = pd.DataFrame.from_dict(best_params)
|
| 195 |
+
plot = utils.interpret(np.asarray(optimized_x))
|
| 196 |
#for c in optimized_x.columns:
|
| 197 |
# if c in continuous_variables:
|
| 198 |
# optimized_x[c]=optimized_x[c]*(scaling_factors[c][1]-scaling_factors[c][0])+scaling_factors[c][0]
|