Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -139,9 +139,9 @@ def predict_inverse(hardness_original_target, ys_original_target, metals_to_use,
|
|
139 |
for c in one_hot_columns:
|
140 |
if c in continuous_variables:
|
141 |
if c.startswith("PROPERTY: Metal") and c not in metals_to_use:
|
142 |
-
domain.append({'name': str(c), 'type': 'continuous', 'domain': (0.
|
143 |
else:
|
144 |
-
domain.append({'name': str(c), 'type': 'continuous', 'domain': (0
|
145 |
else:
|
146 |
domain.append({'name': str(c), 'type': 'discrete', 'domain': (0,1)})
|
147 |
|
|
|
139 |
for c in one_hot_columns:
|
140 |
if c in continuous_variables:
|
141 |
if c.startswith("PROPERTY: Metal") and c not in metals_to_use:
|
142 |
+
domain.append({'name': str(c), 'type': 'continuous', 'domain': (0.0, 0.)})
|
143 |
else:
|
144 |
+
domain.append({'name': str(c), 'type': 'continuous', 'domain': (0.01, 1.)})#(0.,1.)})
|
145 |
else:
|
146 |
domain.append({'name': str(c), 'type': 'discrete', 'domain': (0,1)})
|
147 |
|