Show / Hide Table of Contents

Class CofiCostFunction

Default Collaborative Filtering cost function.

Inheritance
System.Object
CostFunction
CofiCostFunction
Inherited Members
CostFunction.Lambda
CostFunction.Regularizer
CostFunction.X
CostFunction.Y
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.Functions.Cost
Assembly:numl.dll
Syntax
public class CofiCostFunction : CostFunction, ICostFunction

Properties

View Source

CollaborativeFeatures

Gets or sets the number of Collaborative Features.

Declaration
public int CollaborativeFeatures { get; set; }
Property Value
Type Description
System.Int32
View Source

R

Gets or Sets the R matrix where each cell indicates if a reference / rating exists (e.g. 1 or 0).

Declaration
public Matrix R { get; set; }
Property Value
Type Description
Matrix

Methods

View Source

ComputeCost(Vector)

Compute the error cost of the given Theta parameter for the training and label sets

Declaration
public override double ComputeCost(Vector theta)
Parameters
Type Name Description
Vector theta

Learning Theta parameters

Returns
Type Description
System.Double
Overrides
CostFunction.ComputeCost(Vector)
View Source

ComputeGradient(Vector)

Compute the error cost of the given Theta parameter for the training and label sets

Declaration
public override Vector ComputeGradient(Vector theta)
Parameters
Type Name Description
Vector theta

Learning Theta parameters

Returns
Type Description
Vector
Overrides
CostFunction.ComputeGradient(Vector)
View Source

Initialize()

Initialization method for performing custom actions prior to being optimized.

Declaration
public override void Initialize()
Overrides
CostFunction.Initialize()
  • View Source
©2017 — Seth Juarez
numl v0.9.20-beta
MIT License
docs by docfx