C# Класс Accord.MachineLearning.BaseBatches

Utility class for preparing mini-batches of data.
Наследование: IEnumerable
Показать файл Открыть проект

Открытые методы

Метод Описание
BaseBatches ( Array inputs, Array weights ) : System

Initializes a new instance of the BaseBatches{TBatch, TInput} class.

GetEnumerator ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

Защищенные методы

Метод Описание
Init ( ) : TBatch

Inheritors should use this method to create a new instance of a mini-batch object. You can use this method to create mini-batches containing different objects related to the mini-batch, such as auxiliary data, privileged information, etc).

PrepareBatch ( Array idx ) : void

Inheritors should use this method to prepare the data for the next batches, for example by reshuffling according to the ordering passed as argument.

PutCurrentSampleInMiniBatch ( batch, int positionInMiniBatch ) : void

Inheritors should use this method to put the current sample in the given mini-batch at the given position.

Приватные методы

Метод Описание
IEnumerable ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

Описание методов

BaseBatches() публичный Метод

Initializes a new instance of the BaseBatches{TBatch, TInput} class.
public BaseBatches ( Array inputs, Array weights ) : System
inputs Array The input data that should be divided into batches.
weights Array The weight for the data that should be divided into batches.
Результат System

GetEnumerator() публичный Метод

Returns an enumerator that iterates through a collection.
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

Init() защищенный абстрактный Метод

Inheritors should use this method to create a new instance of a mini-batch object. You can use this method to create mini-batches containing different objects related to the mini-batch, such as auxiliary data, privileged information, etc).
protected abstract Init ( ) : TBatch
Результат TBatch

PrepareBatch() защищенный Метод

Inheritors should use this method to prepare the data for the next batches, for example by reshuffling according to the ordering passed as argument.
protected PrepareBatch ( Array idx ) : void
idx Array The ordering for the samples in the new batches.
Результат void

PutCurrentSampleInMiniBatch() защищенный Метод

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.
Результат void