Click or drag to resize
Accord.NET (logo)

BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput Class

Base class for Bag of Audiovisual Words implementations.
Inheritance Hierarchy

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
[SerializableAttribute]
public class BaseBagOfWords<TModel, TPoint, TFeature, TClustering, TExtractor, TInput> : ParallelLearningBase, 
	ITransform<TInput, int[]>, ICovariantTransform<TInput, int[]>, 
	ITransform, ITransform<TInput, double[]>, ICovariantTransform<TInput, double[]>
where TModel : BaseBagOfWords<TModel, TPoint, TFeature, TClustering, TExtractor, TInput>
where TPoint : Object, IFeatureDescriptor<TFeature>
where TClustering : Object, IUnsupervisedLearning<IClassifier<TFeature, int>, TFeature, int>
where TExtractor : Object, IFeatureExtractor<TPoint, TInput>, ICloneable
Request Example View Source

Type Parameters

TModel
TPoint
TFeature
TClustering
TExtractor
TInput

The BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput type exposes the following members.

Constructors
  NameDescription
Protected methodBaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput
Constructs a new BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.
Top
Properties
  NameDescription
Public propertyClustering
Gets the clustering algorithm used to create this model.
Public propertyDetector
Gets the feature extractor used to identify features in the input data.
Public propertyMaxDescriptorsPerInstance
Gets or sets the maximum number of descriptors per image that should be used to learn the codebook. Default is 0 (meaning to use all descriptors).
Public propertyNumberOfDescriptors
Gets or sets the maximum number of descriptors that should be used to learn the codebook. Default is 0 (meaning to use all descriptors).
Public propertyNumberOfInputs
Gets the number of inputs accepted by the model.
Public propertyNumberOfOutputs
Gets the number of outputs generated by the model.
Public propertyNumberOfWords
Gets the number of words in this codebook.
Public propertyParallelOptions
Gets or sets the parallelization options for this algorithm.
(Inherited from ParallelLearningBase.)
Public propertyStatistics
Gets statistics about the last codebook learned.
Public propertyToken
Gets or sets a cancellation token that can be used to cancel the algorithm while it is running.
(Inherited from ParallelLearningBase.)
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.)
Protected methodFor
Executes a parallel for using the feature detector in a thread-safe way.
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
Initializes this instance.
Protected methodInnerLearnT
Generic learn method implementation that should work for any input type. This method is useful for re-using code between methods that accept Bitmap, BitmapData, UnmanagedImage, filenames as strings, etc.
Public methodLearn(TFeature, Double)
Learns a model that can map the given inputs to the desired outputs.
Public methodLearn(TInput, Double)
Learns a model that can map the given inputs to the desired outputs.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransform(ListTPoint)
Applies the transformation to an input, producing an associated output.
Public methodTransform(TInput)
Applies the transformation to an input, producing an associated output.
Public methodTransform(TInput)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
Public methodTransform(IEnumerableTPoint, Double)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
Public methodTransform(IEnumerableTPoint, Int32)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
Public methodTransform(TInput, Double)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
Public methodTransform(TInput, Int32)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
Public methodTransform(TInput, Double)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
Public methodTransform(TInput, Int32)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
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