SimilarityMetric_ constructor

SimilarityMetric_({
  1. SimilarityMetric___EuclideanSimilarity? euclideanSimilarity,
  2. SimilarityMetric___InnerProduct? innerProduct,
  3. SimilarityMetric___CosineSimilarity? cosineSimilarity,
})

Implementation

factory SimilarityMetric_({
  SimilarityMetric___EuclideanSimilarity? euclideanSimilarity,
  SimilarityMetric___InnerProduct? innerProduct,
  SimilarityMetric___CosineSimilarity? cosineSimilarity,
}) {
  final $result = create();
  if (euclideanSimilarity != null) {
    $result.euclideanSimilarity = euclideanSimilarity;
  }
  if (innerProduct != null) {
    $result.innerProduct = innerProduct;
  }
  if (cosineSimilarity != null) {
    $result.cosineSimilarity = cosineSimilarity;
  }
  return $result;
}