Jensen-holm commited on
Commit
deecb43
·
1 Parent(s): 527f863

fixing bug with algorithm as an argument for clustering, this was breaking the neural network endpoint

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -36,7 +36,9 @@ def index():
36
  # parse arguments
37
  algorithm = options[request.json["algorithm"]]
38
  args = request.json["arguments"]
39
- args["algorithm"] = request.json["algorithm"]
 
 
40
 
41
  # using the iris data set for every algorithm
42
  X, y = iris()
 
36
  # parse arguments
37
  algorithm = options[request.json["algorithm"]]
38
  args = request.json["arguments"]
39
+
40
+ if "cluster" in request.json["algorithm"]:
41
+ args["algorithm"] = request.json["algorithm"]
42
 
43
  # using the iris data set for every algorithm
44
  X, y = iris()