PreprocessResponse
code_loader.contract.datasetclasses.PreprocessResponse
An object that holds the samples data and length. This object is generated in the Preprocessing Function for each dataset slice. Then passed to the input encoders, ground_truth encoders and metadata functions as an argument.
@dataclass
PreprocessResponse:
length: int,
data: Any,
For more on
PreprocessResponse
:Args | Text |
---|---|
length | (int) value with the amount of samples in the data. |
data | (Any) Dictionary / pandas.DataFrame / List or any object that describes the dataset features. The data parameter is later passed to the input encoders, ground_truth encoders, and metadata functions. |
from code_loader.contract.datasetclasses import PreprocessResponse
preprocess_response = PreprocessResponse(length=len(x_df.index), data=x_df)
Full examples can be found at the Dataset Integration section of the following guides:
Last modified 10mo ago