Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

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

Open
delphieritas opened this issue Aug 17, 2019 · 1 comment
Open

Comments

@delphieritas
Copy link

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
Copy link
Collaborator

wild-flame commented Aug 19, 2019

Hi @delphieritas ,

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants