Parameters
inputs : FeCleanerInput
Custom cleaning inputs configuration. If None, automatically resolves ‘train.raw’, ‘test.raw’, and ‘dtypes.raw’ from preceding step.
**kwargs : dict
Additional parameters passed to the FeatureCleaner worker.
Inputs full schema can be obtained by
ctx.workers.fe_cleaner.spec with main params:inputs == None | → | pipeline data context |
train_set != None | → | custom train data for fe_cleaner training and feature cleaning |
test_set != None | → | custom test data might be provided to apply dtypes by trained model |
dtypes != None | → | custom dtypes of all variables in train_set to apply on train and test |
Returns
FeatureCleanerWorker
The populated instance of FeatureCleanerWorker.
Populates attributes into the worker context:
model | → | ctx.workers.fe_cleaner |
inputs | → | ctx.workers.fe_cleaner.spec |
result | → | ctx.workers.fe_cleaner.result |
state | → | ctx.workers.fe_cleaner.state |
report | → | ctx.workers.fe_cleaner.report |
stats | → | ctx.workers.fe_cleaner.stats |
fitter | → | ctx.workers.fe_cleaner.fitter |
Registers data into the datasets context:
data | → | ctx.datasets.train.clean |
data | → | ctx.datasets.test.clean |
dtypes | → | ctx.datasets.dtypes.clean |
dropped | → | ctx.datasets.dtypes.dropped |
features | → | ctx.datasets.features.all.clean |
features | → | ctx.datasets.features.num.clean |
features | → | ctx.datasets.features.cat.clean |
stats | → | ctx.datasets.stats.clean |
Examples
Defining the Project Context (Control Plane) & Project Scope:Worker → Model → Fitter
Accessing worker’s inputs schema → parameters & types (shown in the display output):Model → Fitter
Once worker has been executed, we can obtain internal fitter state and its parametrization (shown in the display output):Attributes
All worker attributes return
None prior its execution.