snajmark commited on
Commit
48b7d2f
·
1 Parent(s): 3161f73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -141,7 +141,7 @@ def predict_inverse(hardness_original_target, ys_original_target, metals_to_use,
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
 
@@ -189,12 +189,9 @@ def predict_inverse(hardness_original_target, ys_original_target, metals_to_use,
189
  result[column] = round(result[column], 2)
190
 
191
  columns = list(result.columns)
192
- optimal_processing = columns[-2]
193
- if optimal_processing == 'OTHER':
194
- return 'CAST'
195
 
196
  return (result[columns[2:-3]], columns[-3], result.at[0, columns[0]],
197
- result.at[0, columns[1]], optimal_processing, columns[-1])
198
 
199
 
200
  example_inputs = [820, 1800, ['Al', 'Fe', 'Ni']]
 
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.0, 1.)})#(0.,1.)})
145
  else:
146
  domain.append({'name': str(c), 'type': 'discrete', 'domain': (0,1)})
147
 
 
189
  result[column] = round(result[column], 2)
190
 
191
  columns = list(result.columns)
 
 
 
192
 
193
  return (result[columns[2:-3]], columns[-3], result.at[0, columns[0]],
194
+ result.at[0, columns[1]], columns[-2], columns[-1])
195
 
196
 
197
  example_inputs = [820, 1800, ['Al', 'Fe', 'Ni']]