dfd4fe157a74c5cca93bbb408ae83e0d1bd48077,python/seldon_core/user_model.py,,client_custom_metrics,#Any#Any#Any#Any#,325

Before Change



            seldon_metrics.update(metrics, method)
            if INCLUDE_METRICS_IN_CLIENT_RESPONSE:
                return metrics
            else:
                return []
        except SeldonNotImplementedError:
            pass

After Change



    
    if not validate_metrics(runtime_metrics):
        raise SeldonMicroserviceException(
            f"Bad metric created during request: {json.dumps(runtime_metrics)}",
            status_code=500,
            reason="MICROSERVICE_BAD_METRIC",
        )
    seldon_metrics.update(runtime_metrics, method)

    if hasattr(user_model, "metrics"):
        try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: SeldonIO/seldon-core
Commit Name: dfd4fe157a74c5cca93bbb408ae83e0d1bd48077
Time: 2020-09-18
Author: r.j.skolasinski@gmail.com
File Name: python/seldon_core/user_model.py
Class Name:
Method Name: client_custom_metrics


Project Name: SeldonIO/seldon-core
Commit Name: a6e21ae1b267aa68ee713f6c571916befe0be295
Time: 2019-03-04
Author: cc@seldon.io
File Name: python/seldon_core/user_model.py
Class Name:
Method Name: client_route


Project Name: SeldonIO/seldon-core
Commit Name: a6e21ae1b267aa68ee713f6c571916befe0be295
Time: 2019-03-04
Author: cc@seldon.io
File Name: python/seldon_core/user_model.py
Class Name:
Method Name: client_aggregate