This module contains wrappers for pandas.DataFrame data for estimators.
This is wrapper for pandas.DataFrame, which allows you to define dataset for estimator by a simple way.
Bases: object
This class implements interface of data for estimators training. It contains data, labels and weights - all information to train model.
| Parameters: |
|
|---|
Get necessary columns
| Parameters: | index (None or str or list(str)) – names |
|---|---|
| Return type: | pandas.Series or pandas.DataFrame |
Evaluate some expression to get necessary data
| Return type: | numpy.array |
|---|
Get data for estimator
| Parameters: | features (None or list[str]) – set of feature names (if None then use all features in data storage) |
|---|---|
| Return type: | pandas.DataFrame |
Get data indices
| Return type: | numpy.array |
|---|
Get sample targets for estimator
| Return type: | numpy.array |
|---|
Get sample weights for estimator
| Return type: | numpy.array |
|---|