Skip to content

Commit e138503

Browse files
authored
Fix weights for MeanIndexCombinationStrategy (#74)
1 parent 7f2644c commit e138503

File tree

3 files changed

+622
-3
lines changed

3 files changed

+622
-3
lines changed

src/yandex_cloud_ml_sdk/_search_indexes/combination_strategy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def _to_proto(self) -> ProtoCombinationStrategy:
7373
if self.mean_evaluation_technique:
7474
kwargs['mean_evaluation_technique'] = int(self.mean_evaluation_technique)
7575
if self.weights is not None:
76-
kwargs['weghts'] = tuple(self.weights)
76+
kwargs['weights'] = tuple(self.weights)
7777

7878
return ProtoCombinationStrategy(
7979
mean_combination=ProtoMeanCombinationStrategy(**kwargs)

0 commit comments

Comments
 (0)