MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / get_weight

Method get_weight

python-package/lightgbmmt/basic.py:1470–1480  ·  view source on GitHub ↗

Get the weight of the Dataset. Returns ------- weight : numpy array or None Weight for each data point from the Dataset.

(self)

Source from the content-addressed store, hash-verified

1468 return self.label
1469
1470 def get_weight(self):
1471 """Get the weight of the Dataset.
1472
1473 Returns
1474 -------
1475 weight : numpy array or None
1476 Weight for each data point from the Dataset.
1477 """
1478 if self.weight is None:
1479 self.weight = self.get_field('weight')
1480 return self.weight
1481
1482 def get_feature_penalty(self):
1483 """Get the feature penalty of the Dataset.

Callers 3

__call__Method · 0.80
__call__Method · 0.80
check_assertsMethod · 0.80

Calls 1

get_fieldMethod · 0.95

Tested by 1

check_assertsMethod · 0.64