Get the weight of the Dataset. Returns ------- weight : numpy array or None Weight for each data point from the Dataset.
(self)
| 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. |