Skip to main content
Step 1: Feature Quality Screening. Enforces data standards by cleaning raw datasets and identifying valid numerical and categorical features. This step creates the ‘clean’ lineage.

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):
Accessing model’s fitter options and schema → parameters & types (shown in the display output):
Executing workers with defaults → auto provided by the context:
Once worker has been executed, thus its main model has been built, we have access to all populated attributes.
View to model report of executed worker:

Model → Fitter

Once worker has been executed, we can obtain internal fitter state and its parametrization (shown in the display output):
The fitted fitter provides all populated attributes.
Direct choice and parametrization of internal fitter:
In the experimenting phase, when various time variables might be under testing (note that ‘time_var2’ must be present in the data):

Attributes

All worker attributes return None prior its execution.