MCPcopy Create free account
hub / github.com/catboost/catboost / set_pairs_weight

Method set_pairs_weight

catboost/python-package/catboost/core.py:1208–1213  ·  view source on GitHub ↗
(self, pairs_weight)

Source from the content-addressed store, hash-verified

1206 return self
1207
1208 def set_pairs_weight(self, pairs_weight):
1209 self._check_weight_type(pairs_weight)
1210 pairs_weight = self._if_pandas_to_numpy(pairs_weight)
1211 self._check_weight_shape(pairs_weight, self.num_pairs())
1212 self._set_pairs_weight(pairs_weight)
1213 return self
1214
1215 def set_timestamp(self, timestamp):
1216 self._check_timestamp_type(timestamp)

Callers 2

test_pairs_weightFunction · 0.95
set_random_weightFunction · 0.80

Calls 3

_check_weight_typeMethod · 0.95
_if_pandas_to_numpyMethod · 0.95
_check_weight_shapeMethod · 0.95

Tested by 2

test_pairs_weightFunction · 0.76
set_random_weightFunction · 0.64