Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -181,7 +181,10 @@ def predict_inverse(hardness_original_target, ys_original_target, metals_to_use,
|
|
| 181 |
print(optimized_x[c])
|
| 182 |
optimized_x[c]=round(optimized_x[c]*(scaling_factors[c][1]-scaling_factors[c][0])+scaling_factors[c][0], 2)
|
| 183 |
result = optimized_x
|
|
|
|
| 184 |
result = result[result>0.0].dropna(axis=1)
|
|
|
|
|
|
|
| 185 |
|
| 186 |
# Normalize metals outputs
|
| 187 |
sum_metals = np.sum(result[c] for c in list(result.columns) if c.startswith("PROPERTY: Metal"))
|
|
|
|
| 181 |
print(optimized_x[c])
|
| 182 |
optimized_x[c]=round(optimized_x[c]*(scaling_factors[c][1]-scaling_factors[c][0])+scaling_factors[c][0], 2)
|
| 183 |
result = optimized_x
|
| 184 |
+
print(result)
|
| 185 |
result = result[result>0.0].dropna(axis=1)
|
| 186 |
+
print("-------------")
|
| 187 |
+
print(result)
|
| 188 |
|
| 189 |
# Normalize metals outputs
|
| 190 |
sum_metals = np.sum(result[c] for c in list(result.columns) if c.startswith("PROPERTY: Metal"))
|