Click or drag to resize
Accord.NET (logo)

BatchesTInput, TOutput Class

Utility class for preparing mini-batches of data.
Inheritance Hierarchy
SystemObject
  Accord.MachineLearningBaseBatchesDataSubsetTInput, TOutput, TInput
    Accord.MachineLearningBatchesTInput, TOutput

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
public class Batches<TInput, TOutput> : BaseBatches<DataSubset<TInput, TOutput>, TInput>
Request Example View Source

Type Parameters

TInput
TOutput

The BatchesTInput, TOutput type exposes the following members.

Constructors
  NameDescription
Public methodBatchesTInput, TOutput
Initializes a new instance of the BatchesTInput, TOutput class.
Top
Properties
  NameDescription
Public propertyCurrentEpoch
Gets or sets the current epoch counter.
(Inherited from BaseBatchesTBatch, TInput.)
Public propertyCurrentIteration
Gets or sets the current iteration counter.
(Inherited from BaseBatchesTBatch, TInput.)
Public propertyCurrentMiniBatch
Gets or sets the current mini-batch counter.
(Inherited from BaseBatchesTBatch, TInput.)
Public propertyCurrentSample
Gets or sets the current sample counter.
(Inherited from BaseBatchesTBatch, TInput.)
Public propertyInputs
Gets or sets the input instances that should be divided among the mini-batches at every epoch.
(Inherited from BaseBatchesTBatch, TInput.)
Public propertyMaxEpochs
Gets or sets the maximum number of epochs for which mini-batches should be generated.
(Inherited from BaseBatchesTBatch, TInput.)
Public propertyMaxIterations
Gets or sets the maximum number of iterations for which mini-batches should be generated.
(Inherited from BaseBatchesTBatch, TInput.)
Public propertyMiniBatchSize
Gets or sets the size of the mini-batch that will be generated.
(Inherited from BaseBatchesTBatch, TInput.)
Public propertyNumberOfMiniBatches
Gets or sets the number of mini-batches that are going to be generated for each epoch.
(Inherited from BaseBatchesTBatch, TInput.)
Public propertyNumberOfSamples
Gets the number of samples in each epoch.
(Inherited from BaseBatchesTBatch, TInput.)
Public propertyOutputs
Gets or sets the output associated with each input instances that should be divided among the mini-batches at every epoch.
Public propertyShuffle
Gets or sets options about how and when data should be shuffled.
(Inherited from BaseBatchesTBatch, TInput.)
Public propertyWeights
Gets or sets the weights associated with each data instance that should be divided among the mini-batches at every epoch.
(Inherited from BaseBatchesTBatch, TInput.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from BaseBatchesTBatch, TInput.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInit
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).
(Overrides BaseBatchesTBatch, TInputInit.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodPrepareBatch
Inheritors should use this method to prepare the data for the next batches, for example by reshuffling according to the ordering passed as argument.
(Overrides BaseBatchesTBatch, TInputPrepareBatch(Int32).)
Protected methodPutCurrentSampleInMiniBatch
Inheritors should use this method to put the current sample in the given mini-batch at the given position.
(Overrides BaseBatchesTBatch, TInputPutCurrentSampleInMiniBatch(TBatch, Int32).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
See Also