Preprocess Function
from code_loader.contract.datasetclasses import PreprocessResponse
from code_loader.inner_leap_binder.leapbinder_decorators import tensorleap_preprocess
@tensorleap_preprocess()
def preprocessing_func() -> List[PreprocessResponse]:
...
train = PreprocessResponse(sample_ids=list(train_df.index), data=train_df, state=DataStateType.training)
val = PreprocessResponse(sample_ids=list(val_df.index), data=val_df, state=DataStateType.validation)
test = PreprocessResponse(sample_ids=list(test_df.index), data=test_df, state=DataStateType.test)
unlabeled = PreprocessResponse(sample_ids=list(unlabeled_df.index), data=unlabeled_df, state=DataStateType.unlabeled)
return [train, val, test, unlabeled]Last updated
Was this helpful?

