I
- Type of input of the first model.O1
- Type of output of the first model (and input of second).O2
- Type of output of the second model.public final class ModelsSequentialComposition<I,O1,O2> extends Object implements IgniteModel<I,O2>
mdl1 :: I -> O1, mdl2 :: O1 -> O2
with prediction
corresponding to application of composition mdl1 `andThen` mdl2
to input.Constructor and Description |
---|
ModelsSequentialComposition(IgniteModel<I,O1> mdl1,
IgniteModel<O1,O2> mdl2)
Construct instance of this class from two given models.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
IgniteModel<I,O1> |
firstModel()
Get first model.
|
static <I,O> ModelsSequentialComposition<I,O,O> |
ofSame(List<? extends IgniteModel<I,O>> lst,
IgniteFunction<O,I> output2Input)
Get sequential composition of submodels with same type.
|
O2 |
predict(I i1)
Make a prediction for the specified input arguments.
|
IgniteModel<O1,O2> |
secondModel()
Get second model.
|
public ModelsSequentialComposition(IgniteModel<I,O1> mdl1, IgniteModel<O1,O2> mdl2)
mdl1
- First model.mdl2
- Second model.public static <I,O> ModelsSequentialComposition<I,O,O> ofSame(List<? extends IgniteModel<I,O>> lst, IgniteFunction<O,I> output2Input)
I
- Type of input of submodel.O
- Type of output of submodel.lst
- List of submodels.output2Input
- Function for conversion output to input.public IgniteModel<I,O1> firstModel()
public IgniteModel<O1,O2> secondModel()
public void close()
close
in interface AutoCloseable
close
in interface IgniteModel<I,O2>
close
in interface Model<I,O2>
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024