Documentation ¶
Overview ¶
Package pairwise implements utilities to evaluate pairwise distances or inner product (via kernel).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cosine ¶
type Cosine struct{}
type Euclidean ¶
type Euclidean struct{}
func NewEuclidean ¶
func NewEuclidean() *Euclidean
type PairwiseDistanceFunc ¶
type PolyKernel ¶
type PolyKernel struct {
// contains filtered or unexported fields
}
func NewPolyKernel ¶
func NewPolyKernel(degree int) *PolyKernel
NewPolyKernel returns a d-degree polynomial kernel
func (*PolyKernel) Distance ¶
Distance computes distance under the polynomial kernel (maybe not needed?)
func (*PolyKernel) InnerProduct ¶
InnerProduct computes the inner product through a kernel trick K(x, y) = (x^T y + 1)^d
type RBFKernel ¶
type RBFKernel struct {
// contains filtered or unexported fields
}
func NewRBFKernel ¶
NewRBFKernel returns a representation of a Radial Basis Function Kernel
Click to show internal directories.
Click to hide internal directories.