Get the label of the Dataset. Returns ------- label : numpy array or None The label information from the Dataset.
(self)
| 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. |