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