dataframe-learn-2.4.1.0: Interpretable, expression-returning machine learning for the dataframe ecosystem.
Safe HaskellNone
LanguageHaskell2010

DataFrame.SVM.RFF

Description

Approximate RBF-kernel SVM via Random Fourier Features (Rahimi & Recht): map each row through z(x) = √(2/D)·cos(W x + b) with W ~ N(0, 2γI) (seeded), then fit a linear SVC in the random-feature space. predict compiles to a closed Σ_r β_r·cos(…) expression of size O(D·d), independent of the row count.

Synopsis

Documentation

data RFFConfig Source #

Constructors

RFFConfig 

Fields

Instances

Instances details
Show RFFConfig Source # 
Instance details

Defined in DataFrame.SVM.RFF

Eq RFFConfig Source # 
Instance details

Defined in DataFrame.SVM.RFF

(Columnable a, Ord a) => Fit RFFConfig (Expr a) Source # 
Instance details

Defined in DataFrame.SVM.RFF

Associated Types

type ModelOf RFFConfig (Expr a) 
Instance details

Defined in DataFrame.SVM.RFF

type FrameReq RFFConfig (Expr a) 
Instance details

Defined in DataFrame.SVM.RFF

type FrameReq RFFConfig (Expr a) Source # 
Instance details

Defined in DataFrame.SVM.RFF

type ModelOf RFFConfig (Expr a) Source # 
Instance details

Defined in DataFrame.SVM.RFF

data RFFSVMModel a Source #

A fitted RFF SVM (binary). rffW / rffB are the random projection; rffCoef / rffIntercept the linear SVC in feature space.

Constructors

RFFSVMModel 

Fields

Instances

Instances details
Show a => Show (RFFSVMModel a) Source # 
Instance details

Defined in DataFrame.SVM.RFF

Columnable a => Predict (RFFSVMModel a) Source # 
Instance details

Defined in DataFrame.SVM.RFF

Associated Types

type Prediction (RFFSVMModel a) 
Instance details

Defined in DataFrame.SVM.RFF

type Prediction (RFFSVMModel a) Source # 
Instance details

Defined in DataFrame.SVM.RFF