Show / Hide Table of Contents

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 Source

LogisticKernel()

Default constructor (Sigmoid logit function).

Declaration
public LogisticKernel()

Properties

View Source

IsLinear

Returns True (always) indicating this is a linear kernel.

Declaration
public bool IsLinear { get; }
Property Value
Type Description
System.Boolean
Implements
IKernel.IsLinear
View Source

Lambda

Gets or sets the Lambda modifier value (default is 1).

Declaration
public double Lambda { get; set; }
Property Value
Type Description
System.Double
View Source

LogisticFunction

Gets or sets the logistic function (default is Sigmoid).

Declaration
public IFunction LogisticFunction { get; set; }
Property Value
Type Description
IFunction

Methods

View Source

Compute(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
IKernel.Compute(Matrix)
View Source

Compute(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
IKernel.Compute(Vector, Vector)
View Source

Project(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.

Implements
IKernel.Project(Matrix, Vector)
  • View Source
©2017 — Seth Juarez
numl v0.9.20-beta
MIT License
docs by docfx