I
- Type of input of this model.O
- Type of output of this model.IW
- Type of input of inner model.OW
- Type of output of inner model.M
- Type of inner model.public class AdaptableDatasetModel<I,O,IW,OW,M extends IgniteModel<IW,OW>> extends Object implements IgniteModel<I,O>
before `andThen` inner Mdl `andThen` after
.Constructor and Description |
---|
AdaptableDatasetModel(IgniteFunction<I,IW> before,
M mdl,
IgniteFunction<OW,O> after)
Construct instance of this class.
|
Modifier and Type | Method and Description |
---|---|
<I1> AdaptableDatasetModel<I1,O,IW,OW,M> |
andBefore(IgniteFunction<I1,I> before)
Create new
AdaptableDatasetModel which is a composition of the form thisMdl . before . |
<O1> AdaptableDatasetModel<I,O1,IW,OW,M> |
andThen(IgniteModel<O,O1> after)
Get a composition model of the form
x -> after(mdl(x)) . |
M |
innerModel()
Get inner model.
|
O |
predict(I i)
Result of this model application is a result of composition
before `andThen` inner mdl `andThen` after . |
<M1 extends IgniteModel<IW,OW>> |
withInnerModel(M1 mdl)
Create new instance of this class with changed inner model.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, close, combine, toString
public AdaptableDatasetModel(IgniteFunction<I,IW> before, M mdl, IgniteFunction<OW,O> after)
before
- Function applied before wrapped model.mdl
- Inner model.after
- Function applied after wrapped model.public O predict(I i)
before `andThen` inner mdl `andThen` after
.public <O1> AdaptableDatasetModel<I,O1,IW,OW,M> andThen(IgniteModel<O,O1> after)
x -> after(mdl(x))
.andThen
in interface IgniteModel<I,O>
O1
- Type of output of function applied after this model.after
- Model to apply after this model.x -> after(mdl(x))
.public <I1> AdaptableDatasetModel<I1,O,IW,OW,M> andBefore(IgniteFunction<I1,I> before)
AdaptableDatasetModel
which is a composition of the form thisMdl . before
.andBefore
in interface IgniteModel<I,O>
I1
- Type of function applied before this model.before
- Function applied before this model.AdaptableDatasetModel
which is a composition of the form thisMdl . before
.public M innerModel()
public <M1 extends IgniteModel<IW,OW>> AdaptableDatasetModel<I,O,IW,OW,M1> withInnerModel(M1 mdl)
M1
- Type of inner model.mdl
- Inner model.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024