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

Method set_weight

catboost/python-package/catboost/core.py:1180–1185  ·  view source on GitHub ↗
(self, weight)

Source from the content-addressed store, hash-verified

1178 return self
1179
1180 def set_weight(self, weight):
1181 self._check_weight_type(weight)
1182 weight = self._if_pandas_to_numpy(weight)
1183 self._check_weight_shape(weight, self.num_row())
1184 self._set_weight(weight)
1185 return self
1186
1187 def set_group_id(self, group_id):
1188 self._check_group_id_type(group_id)

Callers 5

test_ones_weightFunction · 0.95
test_non_ones_weightFunction · 0.95
test_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 5

test_ones_weightFunction · 0.76
test_non_ones_weightFunction · 0.76
test_weightFunction · 0.76
set_random_weightFunction · 0.64