BaseBatchesTBatch, TInput Class |
Namespace: Accord.MachineLearning
public abstract class BaseBatches<TBatch, TInput> : IEnumerable where TBatch : DataSubset<TInput>
The BaseBatchesTBatch, TInput type exposes the following members.
Name | Description | |
---|---|---|
BaseBatchesTBatch, TInput |
Initializes a new instance of the BaseBatchesTBatch, TInput class.
|
Name | Description | |
---|---|---|
CurrentEpoch |
Gets or sets the current epoch counter.
| |
CurrentIteration |
Gets or sets the current iteration counter.
| |
CurrentMiniBatch |
Gets or sets the current mini-batch counter.
| |
CurrentSample |
Gets or sets the current sample counter.
| |
Inputs |
Gets or sets the input instances that should be divided among the mini-batches at every epoch.
| |
MaxEpochs |
Gets or sets the maximum number of epochs for which mini-batches should be generated.
| |
MaxIterations |
Gets or sets the maximum number of iterations for which mini-batches should be generated.
| |
MiniBatchSize |
Gets or sets the size of the mini-batch that will be generated.
| |
NumberOfMiniBatches |
Gets or sets the number of mini-batches that are going to be generated for each epoch.
| |
NumberOfSamples |
Gets the number of samples in each epoch.
| |
Shuffle |
Gets or sets options about how and when data should be shuffled.
| |
Weights |
Gets or sets the weights associated with each data instance
that should be divided among the mini-batches at every epoch.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator |
Returns an enumerator that iterates through a collection.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
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).
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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.
| |
PutCurrentSampleInMiniBatch |
Inheritors should use this method to put the current sample in the
given mini-batch at the given position.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
SetEqualsTBatch |
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.) | |
To(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.) | |
ToT | 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.) |