public interface LearningEnvironmentBuilder extends Serializable
Modifier and Type | Method and Description |
---|---|
default LearningEnvironment |
buildForTrainer()
Builds learning environment for trainer.
|
LearningEnvironment |
buildForWorker(int part)
Builds
LearningEnvironment for worker on given partition. |
static LearningEnvironmentBuilder |
defaultBuilder()
Get default
LearningEnvironmentBuilder . |
LearningEnvironmentBuilder |
withDataTtl(long dataTtl)
Specify partition data time-to-live in seconds (-1 for an infinite lifetime).
|
default <T extends MLLogger.Factory & Serializable> |
withLoggingFactory(T loggingFactory)
Specify logging factory.
|
LearningEnvironmentBuilder |
withLoggingFactoryDependency(IgniteFunction<Integer,MLLogger.Factory> loggingFactory)
Specify dependency (partition -> logging factory).
|
default <T extends ParallelismStrategy & Serializable> |
withParallelismStrategy(T stgy)
Specifies Parallelism Strategy for LearningEnvironment.
|
LearningEnvironmentBuilder |
withParallelismStrategyDependency(IgniteFunction<Integer,ParallelismStrategy> stgy)
Specifies dependency (partition -> Parallelism Strategy for LearningEnvironment).
|
default LearningEnvironmentBuilder |
withParallelismStrategyType(ParallelismStrategy.Type stgyType)
Specifies Parallelism Strategy Type for LearningEnvironment.
|
LearningEnvironmentBuilder |
withParallelismStrategyTypeDependency(IgniteFunction<Integer,ParallelismStrategy.Type> stgyType)
Specifies dependency (partition -> Parallelism Strategy Type for LearningEnvironment).
|
default LearningEnvironmentBuilder |
withRandom(Random random)
Specify random numbers generator for learning environment.
|
LearningEnvironmentBuilder |
withRandomDependency(IgniteFunction<Integer,Random> rngSupplier)
Specify dependency (partition -> random numbers generator).
|
default LearningEnvironmentBuilder |
withRNGSeed(long seed)
Specify seed for random number generator.
|
LearningEnvironmentBuilder |
withRNGSeedDependency(IgniteFunction<Integer,Long> seed)
Specify dependency (partition -> seed for random number generator).
|
LearningEnvironment buildForWorker(int part)
LearningEnvironment
for worker on given partition.part
- Partition.LearningEnvironment
for worker on given partition.default LearningEnvironment buildForTrainer()
LearningEnvironmentBuilder withParallelismStrategyTypeDependency(IgniteFunction<Integer,ParallelismStrategy.Type> stgyType)
stgyType
- Function describing dependency (partition -> Parallelism Strategy Type).default LearningEnvironmentBuilder withParallelismStrategyType(ParallelismStrategy.Type stgyType)
stgyType
- Parallelism Strategy Type.LearningEnvironmentBuilder withParallelismStrategyDependency(IgniteFunction<Integer,ParallelismStrategy> stgy)
stgy
- Function describing dependency (partition -> Parallelism Strategy).default <T extends ParallelismStrategy & Serializable> LearningEnvironmentBuilder withParallelismStrategy(T stgy)
T
- Parallelism strategy type.stgy
- Parallelism Strategy.LearningEnvironmentBuilder withLoggingFactoryDependency(IgniteFunction<Integer,MLLogger.Factory> loggingFactory)
loggingFactory
- Function describing (partition -> logging factory).default <T extends MLLogger.Factory & Serializable> LearningEnvironmentBuilder withLoggingFactory(T loggingFactory)
loggingFactory
- Logging factory.LearningEnvironmentBuilder withRNGSeedDependency(IgniteFunction<Integer,Long> seed)
seed
- Function describing dependency (partition -> seed for random number generator).default LearningEnvironmentBuilder withRNGSeed(long seed)
seed
- Seed for random number generator.LearningEnvironmentBuilder withRandomDependency(IgniteFunction<Integer,Random> rngSupplier)
rngSupplier
- Function describing dependency (partition -> random numbers generator).default LearningEnvironmentBuilder withRandom(Random random)
random
- Rrandom numbers generator for learning environment.LearningEnvironmentBuilder withDataTtl(long dataTtl)
dataTtl
- Partition data time-to-live in seconds (-1 for an infinite lifetime).static LearningEnvironmentBuilder defaultBuilder()
LearningEnvironmentBuilder
.LearningEnvironmentBuilder
.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024