nginyc / rafiki

Rafiki is a distributed system that supports training and deployment of machine learning models using AutoML, built with ease-of-use in mind.
Apache License 2.0
36 stars 23 forks source link

dev branch: rafiki/model/dev.py, isinstance float checking issue #165

Open delphieritas opened 4 years ago

delphieritas commented 4 years ago

issue description: score = model_inst.evaluate(val_dataset_path) # this is not 'float' type if not isinstance(score, float): raise Exception('evaluate() should return a float!') # will raise this ERROR

suggestion: score = float(model_inst.evaluate(val_dataset_path)) # to make it 'float' type if not isinstance(score, float): raise Exception('evaluate() should return a float!')

wild-flame commented 4 years ago

Hi @delphieritas ,

Can you specify which file/line are these codes in?