Is there a way to pursue with EvalMetrics when it fails on some IDs

#1

Hi,
I evaluate two metrics on a set of BillingAccounts.
Knowing that the list of IDs will be treated the same way without interfering (Embarrassingly parallel problem) . I would like not to crush when one metric crushes on one ID, ang get the results of successful IDs results.
EvalMetric instead of EvalMetrics is no option, as number of IDs is relatively big for execution everyday.

The error recieved has to do with not properly normalized timeseries:

EvalMetrics error :c3.love.exceptions.C3RuntimeException: c3.love.exceptions.C3RuntimeException: MetricEngine error : c3.love.exceptions.C3RuntimeException: Error c3.love.exceptions.C3RuntimeException: DataLoaderImpl Error : Call to fetchNormalizedData failed : Unexpected token eos when expecting objEnd in {}

Thanks in advance.

0 Likes

#2

You can use the continueOnError flag in your evalMetrics. E.g.

BillingAccount.evalMetrics({
  continueOnError: true,
  ...
})

You can access the documentation about this field with c3ShowFunc(EvalMetricsSpec, 'continueOnError')

Cannot you fix the issue related to this ID?

1 Like