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

Method get_label

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

Get the label of the Dataset. Returns ------- label : numpy array or None The label information from the Dataset.

(self)

Source from the content-addressed store, hash-verified

1456 return self
1457
1458 def get_label(self):
1459 """Get the label of the Dataset.
1460
1461 Returns
1462 -------
1463 label : numpy array or None
1464 The label information from the Dataset.
1465 """
1466 if self.label is None:
1467 self.label = self.get_field('label')
1468 return self.label
1469
1470 def get_weight(self):
1471 """Get the weight of the Dataset.

Callers 7

_lazy_initMethod · 0.95
constructMethod · 0.95
__call__Method · 0.80
__call__Method · 0.80
_make_n_foldsFunction · 0.80
check_assertsMethod · 0.80
test_continue_trainMethod · 0.80

Calls 1

get_fieldMethod · 0.95

Tested by 2

check_assertsMethod · 0.64
test_continue_trainMethod · 0.64