Click or drag to resize
Accord.NET (logo)

BaseGridSearchTResult, TModel, TRange, TParam, TLearner, TInput, TOutput Class

Inheritance Hierarchy

Namespace:  Accord.MachineLearning.Performance
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
public abstract class BaseGridSearch<TResult, TModel, TRange, TParam, TLearner, TInput, TOutput> : ParallelLearningBase, 
	ISupervisedLearning<TResult, TInput, TOutput>
where TResult : new(), GridSearchResult<TModel, TParam, TInput, TOutput>
where TModel : class, Object, ITransform<TInput, TOutput>
Request Example View Source

Type Parameters

TResult
The type of the object that should hold the results of the grid serach (e.g. GridSearchResultTModel, TInput, TOutput).
TModel
The type of the machine learning model whose parameters should be searched.
TRange
The type that specifies how ranges of the parameter values are represented.
TParam
The type that specifies how the value for a single parameter is represented.
TLearner
The type of the learning algorithm used to learn TModel.
TInput
The type of the input data. Default is double[].
TOutput
The type of the output data. Default is int.

The BaseGridSearchTResult, TModel, TRange, TParam, TLearner, TInput, TOutput type exposes the following members.

Constructors
  NameDescription
Protected methodBaseGridSearchTResult, TModel, TRange, TParam, TLearner, TInput, TOutput
Initializes a new instance of the BaseGridSearchTResult, TModel, TRange, TParam, TLearner, TInput, TOutput class.
Top
Properties
  NameDescription
Public propertyFit
Public propertyLearner
Public propertyLoss
Gets or sets a ComputeLossTOutput, TInfo function that can be used to measure how far the actual model predictions were from the expected ground-truth.
Public propertyParallelOptions
Gets or sets the parallelization options for this algorithm.
(Inherited from ParallelLearningBase.)
Public propertyParameterRanges
The range of parameters to consider during search.
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.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetLengths
Inheritors of this class should return the number of possible parameter values for each parameter in the grid-search range. For example, if a problem should search parameters in the range {0, 1, ... 9} (10 values) and {-1, -2, -3 } (3 values), this method should return { 10, 3 }.
Protected methodGetParameters
Inheritors of this class should specify how to get actual values for the parameters given a index vector in the grid-search space. Those indices indicate which values should be given, e.g. if there are two parameters in the problem, the ranges of the first parameter are {10, 20, 30}, and the ranges of the second parameter are {0.1, 0.01, 0.001 }, if the index vector is { 1, 2 } this method should return { 20, 0.001 }.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLearn
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.)
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

Reference