Click or drag to resize
Accord.NET (logo)

OneVsRestLearningTInput, TBinary, TModel Class

Inheritance Hierarchy

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
[SerializableAttribute]
public abstract class OneVsRestLearning<TInput, TBinary, TModel> : ParallelLearningBase, 
	ISupervisedLearning<TModel, TInput, int>, ISupervisedLearning<TModel, TInput, int[]>, 
	ISupervisedLearning<TModel, TInput, bool[]>
where TBinary : Object, IBinaryScoreClassifier<TInput>
where TModel : OneVsRest<TBinary, TInput>
Request Example View Source

Type Parameters

TInput
The type for the samples handled by the classifier. Default is double[].
TBinary
The type for the inner binary classifiers used in the one-vs-rest approach.
TModel
The type of the model being learned.

The OneVsRestLearningTInput, TBinary, TModel type exposes the following members.

Constructors
  NameDescription
Protected methodOneVsRestLearningTInput, TBinary, TModel
Initializes a new instance of the OneVsRestLearningTInput, TBinary, TModel class.
Top
Properties
  NameDescription
Public propertyAggregateExceptions
Gets or sets a value indicating whether the entire training algorithm should stop in case an exception has been detected at just one of the inner binary learning problems. Default is true (execution will not be stopped).
Public propertyIsMultilabel
Public propertyLearner
Gets or sets a function that takes a set of parameters and creates a learning algorithm for learning each of the binary inner classifiers needed by the one-vs-rest classification strategy.
Public propertyModel
Gets or sets the model being learned.
Public propertyParallelOptions
Gets or sets the parallelization options for this algorithm.
(Inherited from ParallelLearningBase.)
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 methodConfigureTResult(FuncTResult)
Sets a callback function that takes a set of parameters and creates a learning algorithm for learning each of the binary inner classifiers needed by the one-vs-rest classification strategy. Calling this method sets the Learner property.
Public methodConfigureT, TResult(FuncT, TResult)
Sets a callback function that takes a set of parameters and creates a learning algorithm for learning each of the binary inner classifiers needed by the one-vs-rest classification strategy. Calling this method sets the Learner property.
Protected methodCreate
Creates an instance of the model to be learned. Inheritors of this abstract class must define this method so new models can be created from the training data.
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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLearn(TInput, Boolean, Double)
Learns a model that can map the given inputs to the given outputs.
Public methodLearn(TInput, Int32, Double)
Learns a model that can map the given inputs to the given outputs.
Public methodLearn(TInput, Int32, Double)
Learns a model that can map the given inputs to the given outputs.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnSubproblemFinished
Raises the [E:SubproblemFinished] event.
Protected methodOnSubproblemStarted
Raises the [E:SubproblemStarted] event.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventSubproblemFinished
Occurs when the learning of a subproblem has finished.
Public eventSubproblemStarted
Occurs when the learning of a subproblem has started.
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