module onnx_conv.scorers.cdist_score#

Short summary#

module mlprodict.onnx_conv.scorers.cdist_score

Implementation of a dummy score using cdist.

source on GitHub

Functions#

function

truncated documentation

convert_score_cdist_sum

Converts function score_cdist_sum() into ONNX.

score_cdist_sum

Computes the sum of pairwise distances between expected_values and predictions. It has no particular purpose …

Documentation#

Implementation of a dummy score using cdist.

source on GitHub

mlprodict.onnx_conv.scorers.cdist_score.convert_score_cdist_sum(scope, operator, container)#

Converts function score_cdist_sum into ONNX.

source on GitHub

mlprodict.onnx_conv.scorers.cdist_score.score_cdist_sum(expected_values, predictions, metric='sqeuclidean', p=None)#

Computes the sum of pairwise distances between expected_values and predictions. It has no particular purpose except the one of converting a scorer into ONNX.

Parameters:
  • expected_values – expected_values

  • predictions – predictions

  • metric – see function cdist

  • p – see function cdist

Returns:

some of the pairwise distances

source on GitHub