Class KernelFactory
Kernel Factory - singleton class. It maintains a list of Kernel names and their types
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Distributions.Kernels
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public sealed class KernelFactory
Properties
Instance
Kernel function factory singleton instance
Declaration
public static KernelFactory Instance { get; }
Property Value
Type | Description |
---|---|
KernelFactory |
Methods
CreateKernelFunction(String)
Creates a kernel function by specifying the kernel function name
Declaration
public IKernelFunctionWithParams CreateKernelFunction(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of the kernel function |
Returns
Type | Description |
---|---|
IKernelFunctionWithParams |
RegisterKernelFunction(IKernelFunctionWithParams)
Registers a kernel function. The factory is primed with stock kernel functions. This function allows clients to add in custom kernel functions
Declaration
public void RegisterKernelFunction(IKernelFunctionWithParams ikf)
Parameters
Type | Name | Description |
---|---|---|
IKernelFunctionWithParams | ikf | Type instance |