Class LogisticKernel
Logistic Kernel for computing the similarity between the inner product space. logit(L * xi * xj)
Inheritance
System.Object
LogisticKernel
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace:numl.Math.Kernels
Assembly:numl.dll
Syntax
public class LogisticKernel : IKernel
Constructors
View SourceLogisticKernel()
Default constructor (Sigmoid logit function).
Declaration
public LogisticKernel()
Properties
View SourceIsLinear
Returns True (always) indicating this is a linear kernel.
Declaration
public bool IsLinear { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Implements
View SourceLambda
Gets or sets the Lambda modifier value (default is 1).
Declaration
public double Lambda { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
LogisticFunction
Gets or sets the logistic function (default is Sigmoid).
Declaration
public IFunction LogisticFunction { get; set; }
Property Value
| Type | Description |
|---|---|
| IFunction |
Methods
View SourceCompute(Matrix)
Computes a Logistic Kernel matrix from the given input matrix.
Declaration
public Matrix Compute(Matrix m)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix | m | Input Matrix. |
Returns
| Type | Description |
|---|---|
| Matrix | Logistic Kernel Matrix. |
Implements
View SourceCompute(Vector, Vector)
Computes the logistic kernel function between the two input vectors.
Declaration
public double Compute(Vector v1, Vector v2)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector | v1 | Vector one. |
| Vector | v2 | Vector two. |
Returns
| Type | Description |
|---|---|
| System.Double | Similarity. |
Implements
View SourceProject(Matrix, Vector)
Projects vector into a logistic kernel space.
Declaration
public Vector Project(Matrix m, Vector x)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix | m | Kernel Matrix. |
| Vector | x | Vector in original space. |
Returns
| Type | Description |
|---|---|
| Vector | Vector in logistic kernel space. |