Click or drag to resize
Accord.NET (logo)

CrossValidation Class

Note: This API is now obsolete.

Inheritance Hierarchy

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.6.0
[ObsoleteAttribute("Please use CrossValidation<TModel, TInput> instead.")]
public class CrossValidation : CrossValidation<Object>
Request Example View Source

The CrossValidation type exposes the following members.

Public propertyFitting
Gets or sets the model fitting function.
(Inherited from CrossValidationTModel.)
Public propertyFolds
Gets the array of data set indexes contained in each fold.
(Inherited from CrossValidationTModel.)
Public propertyIndices
Gets the array of fold indices for each point in the data set.
(Inherited from CrossValidationTModel.)
Public propertyK
Gets the number of folds in the k-fold cross validation.
(Inherited from CrossValidationTModel.)
Public propertyRunInParallel
Gets or sets a value indicating whether to use parallel processing through the use of multiple threads or not. Default is true.
(Inherited from CrossValidationTModel.)
Public propertySamples
Gets the total number of data samples in the data set.
(Inherited from CrossValidationTModel.)
Public methodCompute
Computes the cross validation algorithm.
(Inherited from CrossValidationTModel.)
Public methodCreatePartitions
Gets the indices for the training and validation sets for the specified validation fold index.
(Inherited from CrossValidationTModel.)
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 methodGetPartitionSize
Gets the number of instances in training and validation sets for the specified validation fold index.
(Inherited from CrossValidationTModel.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberSplittings(Int32, Int32) Obsolete.
Obsolete. Please use Random(Int32, Int32) instead.
Public methodStatic memberSplittings(Int32, Int32, Int32) Obsolete.
Obsolete. Please use Classes.Random(labels, classes, folds) instead.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Extension Methods
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 MethodToT
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.)
See Also