Parameters
inputs : NumEncoderInput
Custom encoding configuration. If None, resolves from ‘train.stable’ and ‘features.num.stable.dist’.
**kwargs : dict
Additional parameters passed to the NumEncoder worker.
Inputs full schema can be obtained by
ctx.workers.num_encoder.spec with main params:inputs == None | → | pipeline data context |
train_set != None | → | custom train data for num_encoder training |
num_features != None | → | optional subset of numerical features |
Returns
NumEncoderWorker
The populated instance of NumEncoderWorker.
Populates attributes into the worker context:
model | → | ctx.workers.num_encoder |
inputs | → | ctx.workers.num_encoder.spec |
result | → | ctx.workers.num_encoder.result |
state | → | ctx.workers.num_encoder.state |
report | → | ctx.workers.num_encoder.report |
stats | → | ctx.workers.num_encoder.stats |
fitter | → | ctx.workers.num_encoder.fitter |
Registers data into the datasets context:
data | → | ctx.datasets.train.encoded.num |
features | → | ctx.datasets.features.num.encoded |
features | → | ctx.datasets.features.num.selected |
mapping | → | ctx.datasets.features.num.mapping |
dropped | → | ctx.datasets.features.num.dropped.encoded |
encodings | → | ctx.datasets.encodings.num |
stats | → | ctx.datasets.stats.encoded.num |
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.