boosters.Dataset#
- class boosters.Dataset[source]#
Bases:
DatasetDataset holding features, labels, and optional metadata.
- static __new__(cls, features, labels=None, weights=None, feature_names=None, categorical_features=None)[source]#
Create a Dataset from numpy arrays or a pandas DataFrame.
- categorical_features#
Indices of categorical features.
- feature_names#
Feature names if provided.
- has_labels#
Whether labels are present.
- has_weights#
Whether weights are present.
- n_features#
Number of features in the dataset.
- n_samples#
Number of samples in the dataset.
- shape#
Shape of the features array as (n_samples, n_features).