Click or drag to resize
Accord.NET (logo)

BaseBatchesTBatch, TInput Class

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

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

Type Parameters

TBatch
TInput

The BaseBatchesTBatch, TInput type exposes the following members.

Constructors
  NameDescription
Public methodBaseBatchesTBatch, TInput
Initializes a new instance of the BaseBatchesTBatch, TInput class.
Top
Properties
  NameDescription
Public propertyCurrentEpoch
Gets or sets the current epoch counter.
Public propertyCurrentIteration
Gets or sets the current iteration counter.
Public propertyCurrentMiniBatch
Gets or sets the current mini-batch counter.
Public propertyCurrentSample
Gets or sets the current sample counter.
Public propertyInputs
Gets or sets the input instances that should be divided among the mini-batches at every epoch.
Public propertyMaxEpochs
Gets or sets the maximum number of epochs for which mini-batches should be generated.
Public propertyMaxIterations
Gets or sets the maximum number of iterations for which mini-batches should be generated.
Public propertyMiniBatchSize
Gets or sets the size of the mini-batch that will be generated.
Public propertyNumberOfMiniBatches
Gets or sets the number of mini-batches that are going to be generated for each epoch.
Public propertyNumberOfSamples
Gets the number of samples in each epoch.
Public propertyShuffle
Gets or sets options about how and when data should be shuffled.
Public propertyWeights
Gets or sets the weights associated with each data instance that should be divided among the mini-batches at every epoch.
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.
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).
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.
Protected methodPutCurrentSampleInMiniBatch
Inheritors should use this method to put the current sample in the given mini-batch at the given position.
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 MethodSetEqualsTBatch
Compares two enumerables for set equality. Two enumerables are set equal if they contain the same elements, but not necessarily in the same order.
(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