Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -192,9 +192,9 @@ 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 |
-
for c in optimized_x.columns:
|
196 |
-
|
197 |
-
|
198 |
optimized_x = optimized_x[['PROPERTY: Calculated Density (g/cm$^3$)',
|
199 |
'PROPERTY: Calculated Young modulus (GPa)',
|
200 |
'Preprocessing method ANNEAL',
|
|
|
192 |
[el['name'] for el in domain],
|
193 |
[[x] for x in x_best]))
|
194 |
optimized_x = pd.DataFrame.from_dict(best_params)
|
195 |
+
#for c in optimized_x.columns:
|
196 |
+
# if c in continuous_variables:
|
197 |
+
# optimized_x[c]=optimized_x[c]*(scaling_factors[c][1]-scaling_factors[c][0])+scaling_factors[c][0]
|
198 |
optimized_x = optimized_x[['PROPERTY: Calculated Density (g/cm$^3$)',
|
199 |
'PROPERTY: Calculated Young modulus (GPa)',
|
200 |
'Preprocessing method ANNEAL',
|