TensorFlow.NET.Samples/Utility/Datasets.cs
/// <summary>
/// selects a few number of images determined by the batch_size variable (if you don't know why, read about Stochastic Gradient Method)
/// </summary>
/// <param name="x"></param>
/// <param name="y"></param>
/// <param name="start"></param>
/// <param name="end"></param>
/// <returns></returns>
selects a few number of images determined by the batch_size variable (if you don't know why, read about Stochastic Gradient Method)
selects a few number of images determined by the batch_size variable ( if you don ' t know why read about Stochastic Gradient Method )
public (NDArray, NDArray) GetNextBatch(NDArray x, NDArray y, int start, int end)
        {
            var x_batch = x[$"{start}:{end}"];
            var y_batch = y[$"{start}:{end}"];
            return (x_batch, y_batch);
        }
public ( NDArray , NDArray ) GetNextBatch ( NDArray x , NDArray y , int start , int end ) { var x_batch = x [ $" { start } : { end } " ] ; var y_batch = y [ $" { start } : { end } " ] ; return ( x_batch , y_batch ) ; }
selects a few number of images determined by the batch_size variable (if you don't know why, read about Stochastic Gradient Method)
selects a few number of images determined by the batch_size variable ( if you don ' t know why read about Stochastic Gradient Method )
None
x
NDArray
None
y
NDArray
None
start
int
None
end
int
None