C# 클래스 Accord.MachineLearning.BaseBatches

Utility class for preparing mini-batches of data.
상속: IEnumerable
파일 보기 프로젝트 열기: Webreaper/Damselfly

공개 메소드들

메소드 설명
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