Kernel (Fisher) Discriminant Analysis.
Inheritance Hierarchy Namespace: Accord.Statistics.AnalysisAccord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax[SerializableAttribute] public class KernelDiscriminantAnalysis : BaseDiscriminantAnalysis, ISupervisedLearning<KernelDiscriminantAnalysisPipeline, double[], int>
<SerializableAttribute> Public Class KernelDiscriminantAnalysis Inherits BaseDiscriminantAnalysis Implements ISupervisedLearning(Of KernelDiscriminantAnalysisPipeline, Double(), Integer)Request Example View Source
The KernelDiscriminantAnalysis type exposes the following members.
Constructors Properties Methods Name Description Classify(Double) Obsolete.Classifies a new instance into one of the available classes.
(Overrides BaseDiscriminantAnalysisClassify(Double).) Classify(Double) Obsolete.Classifies new instances into one of the available classes.
(Overrides BaseDiscriminantAnalysisClassify(Double).) Classify(Double, Double) Obsolete.Classifies a new instance into one of the available classes.
(Overrides BaseDiscriminantAnalysisClassify(Double, Double).) Compute Obsolete.Computes the Multi-Class Kernel Discriminant Analysis algorithm.
CreateDiscriminantsCreates additional information about principal components.
(Inherited from BaseDiscriminantAnalysis.) DiscriminantFunctionGets the output of the discriminant function for a given class.
(Overrides BaseDiscriminantAnalysisDiscriminantFunction(Double, Int32).) EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object.) FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.) GetHashCodeServes as the default hash function.
(Inherited from Object.) GetNumberOfDimensionsReturns the minimum number of discriminant space dimensions (discriminant factors) required to represent a given percentile of the data.
(Inherited from BaseDiscriminantAnalysis.) GetTypeGets the Type of the current instance.
(Inherited from Object.) init Obsolete.Obsolete.
(Inherited from BaseDiscriminantAnalysis.) InitInitializes common properties.
(Inherited from BaseDiscriminantAnalysis.) LearnLearns a model that can map the given inputs to the given outputs.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object.) ToStringReturns a string that represents the current object.
(Inherited from Object.) Transform(Double) Obsolete.Obsolete.
(Inherited from BaseDiscriminantAnalysis.) Transform(Double)Applies the transformation to an input, producing an associated output.
(Inherited from BaseDiscriminantAnalysis.) Transform(Double)Applies the transformation to an input, producing an associated output.
(Inherited from BaseDiscriminantAnalysis.) Transform(Double, Int32) Obsolete.Obsolete.
(Inherited from BaseDiscriminantAnalysis.) Transform(Double, Int32) Obsolete.Obsolete.
(Inherited from BaseDiscriminantAnalysis.) Transform(Double, Int32) Obsolete.Obsolete.
(Inherited from BaseDiscriminantAnalysis.) Transform(Double, Double)Applies the transformation to an input, producing an associated output.
(Overrides TransformBaseTInput, TOutputTransform(TInput, TOutput).) Top Extension Methods Name Description HasMethodChecks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) IsEqualCompares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(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.) Top RemarksKernel (Fisher) discriminant analysis (kernel FDA) is a non-linear generalization of linear discriminant analysis (LDA) using techniques of kernel methods. Using a kernel, the originally linear operations of LDA are done in a reproducing kernel Hilbert space with a non-linear mapping.
The algorithm used is a multi-class generalization of the original algorithm by Mika et al. in Fisher discriminant analysis with kernels (1999).
This class can also be bound to standard controls such as the DataGridView by setting their DataSource property to the analysis' Discriminants property.
References:
double[][] inputs = { new double[] { 4, 1 }, new double[] { 2, 4 }, new double[] { 2, 3 }, new double[] { 3, 6 }, new double[] { 4, 4 }, new double[] { 9, 10 }, new double[] { 6, 8 }, new double[] { 9, 5 }, new double[] { 8, 7 }, new double[] { 10, 8 } }; int[] output = { 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 }; var kda = new KernelDiscriminantAnalysis() { Kernel = new Linear() }; var classifier = kda.Learn(inputs, output); double[][] projection = kda.Transform(inputs); int[] results = kda.Classify(inputs);See Also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4