public class CompositionUtils extends Object
Constructor and Description |
---|
CompositionUtils() |
Modifier and Type | Method and Description |
---|---|
static <K,V,L> IgniteBiFunction<K,V,Vector> |
asFeatureExtractor(FeatureLabelExtractor<K,V,L> extractor)
Create feature extractor from given mapping
(key, value) -> LabeledVector . |
static <K,V,L> IgniteBiFunction<K,V,L> |
asLabelExtractor(FeatureLabelExtractor<K,V,L> extractor)
Label extractor feature extractor from given mapping
(key, value) -> LabeledVector . |
static <I,O,M extends IgniteModel<I,O>,L> |
unsafeCoerce(DatasetTrainer<? extends M,L> trainer)
Perform blurring of model type of given trainer to
IgniteModel<I, O> , where I, O are input and output
types of original model. |
public static <I,O,M extends IgniteModel<I,O>,L> DatasetTrainer<IgniteModel<I,O>,L> unsafeCoerce(DatasetTrainer<? extends M,L> trainer)
IgniteModel<I, O>
, where I, O are input and output
types of original model.I
- Type of input of model produced by coerced trainer.O
- Type of output of model produced by coerced trainer.M
- Type of model produced by coerced trainer.L
- Type of labels.trainer
- Trainer to coerce.DatasetTrainer<IgniteModel<I, O>, L>
.public static <K,V,L> IgniteBiFunction<K,V,Vector> asFeatureExtractor(FeatureLabelExtractor<K,V,L> extractor)
(key, value) -> LabeledVector
.K
- Type of keys.V
- Type of values.L
- Type of labels.extractor
- Mapping (key, value) -> LabeledVector
.(key, value) -> LabeledVector
.public static <K,V,L> IgniteBiFunction<K,V,L> asLabelExtractor(FeatureLabelExtractor<K,V,L> extractor)
(key, value) -> LabeledVector
.K
- Type of keys.V
- Type of values.L
- Type of labels.extractor
- Mapping (key, value) -> LabeledVector
.(key, value) -> LabeledVector
.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024