31a5fad155d657c458006cd45524564b5b40fcea,python/seldon_core/user_model.py,,client_predict,#Any#Any#Any#,195
Before Change
try:
return user_model.predict(features, feature_names, **kwargs)
except TypeError:
return user_model.predict(features, feature_names)
except SeldonNotImplementedError:
pass
logger.debug("predict is not implemented")
return []
After Change
if hasattr(user_model, "predict"):
try:
try:
client_response = user_model.predict(features, feature_names, **kwargs)
except TypeError:
client_response = user_model.predict(features, feature_names)
return extract_runtime_data(client_response)
except SeldonNotImplementedError:
pass
logger.debug("predict is not implemented")
return extract_runtime_data([])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: SeldonIO/seldon-core
Commit Name: 31a5fad155d657c458006cd45524564b5b40fcea
Time: 2020-09-18
Author: r.j.skolasinski@gmail.com
File Name: python/seldon_core/user_model.py
Class Name:
Method Name: client_predict
Project Name: SeldonIO/seldon-core
Commit Name: 31a5fad155d657c458006cd45524564b5b40fcea
Time: 2020-09-18
Author: r.j.skolasinski@gmail.com
File Name: python/seldon_core/user_model.py
Class Name:
Method Name: client_transform_input
Project Name: SeldonIO/seldon-core
Commit Name: 31a5fad155d657c458006cd45524564b5b40fcea
Time: 2020-09-18
Author: r.j.skolasinski@gmail.com
File Name: python/seldon_core/user_model.py
Class Name:
Method Name: client_transform_output