a2ml icon indicating copy to clipboard operation
a2ml copied to clipboard

need a clear, crisp definition of what happens when there is an error

Open skatedplrn opened this issue 5 years ago • 1 comments

for example actual can return "didnt find prediction ID"

now in case of error we return: 'result': False, 'data': 'Prediction ID does not exist.'

we should extend error reporting: 'result': False, 'data': { 'error': 'Prediction ID does not exist.', 'error_detail': {'exception': '', 'ids': []}, }

for example for actuals if some IDs are missed: 'result': False, 'data': { 'error': 'Prediction ID does not exist.', 'error_detail': {'exception': '', 'ids': [id1, id2]}, }

each method should have list of possible error in form of string: actual: 'Prediction ID does not exist.' 'Provider error.' 'Internal error'

skatedplrn avatar Jun 28 '20 09:06 skatedplrn

https://scikit-learn.org/stable/modules/generated/sklearn.exceptions.NotFittedError.html#sklearn.exceptions.NotFittedError

skatedplrn avatar Aug 19 '20 11:08 skatedplrn