Accord.MachineLearning.BaseBatches.PutCurrentSampleInMiniBatch C# (CSharp) Method

PutCurrentSampleInMiniBatch() protected method

Inheritors should use this method to put the current sample in the given mini-batch at the given position.
protected PutCurrentSampleInMiniBatch ( batch, int positionInMiniBatch ) : void
batch The mini-batch being constructed.
positionInMiniBatch int The position in mini-batch where the current sample must be put.
return void
        protected virtual void PutCurrentSampleInMiniBatch(TBatch batch, int positionInMiniBatch)
        {
            batch.Inputs[positionInMiniBatch] = shuffledInputs[CurrentSample];
            batch.Weights[positionInMiniBatch] = shuffledWeights[CurrentSample];
            batch.Indices[positionInMiniBatch] = shuffledIndices[CurrentSample];
        }