public static Create ( Array input, Array output, Array weights = null, int batchSize = 32, int maxIterations, int maxEpochs, ShuffleMethod shuffle = ShuffleMethod.EveryEpoch ) : TOutput>.Batches |
||
input | Array | The input data to be partitioned into mini-batches. |
output | Array | The output data to be partitioned into mini-batches. |
weights | Array | The weights for the data to be partitioned into mini-batches. |
batchSize | int | The size of the batch. |
maxIterations | int | The maximum number of mini-batches that should be created until the method stops. |
maxEpochs | int | The maximum number of epochs that should be run until the method stops. |
shuffle | ShuffleMethod | The data shuffling options. |
return | TOutput>.Batches |
public static Batches<TInput, TOutput> Create<TInput, TOutput>(
TInput[] input, TOutput[] output, double[] weights = null,
int batchSize = 32, int maxIterations = 0, int maxEpochs = 0,
ShuffleMethod shuffle = ShuffleMethod.EveryEpoch)
{
return new Batches<TInput, TOutput>(input, output, weights)
{
MiniBatchSize = batchSize,
MaxIterations = maxIterations,
MaxEpochs = maxEpochs,
Shuffle = shuffle
};
}
}