SimilarityMetric_ constructor
SimilarityMetric_({
- SimilarityMetric___EuclideanSimilarity? euclideanSimilarity,
- SimilarityMetric___InnerProduct? innerProduct,
- 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;
}