Univariable Module

Functions and values

Function or value Description

estimateAlpha epsilon xData yData

Full Usage: estimateAlpha epsilon xData yData

Parameters:
    epsilon : float
    xData : Vector<float>
    yData : Vector<float>

Returns: float option
epsilon : float
xData : Vector<float>
yData : Vector<float>
Returns: float option

fit epsilon alpha xData yData

Full Usage: fit epsilon alpha xData yData

Parameters:
    epsilon : float -
    alpha : float -
    xData : Vector<float> -
    yData : Vector<float> -

Returns: Vector<float>

Calculates the weights for logistic regression.

epsilon : float

alpha : float

xData : Vector<float>

yData : Vector<float>

Returns: Vector<float>

Example

predict coef x

Full Usage: predict coef x

Parameters:
    coef : Vector<float> -
    x : float

Returns: float

Returns the regression function

coef : Vector<float>

x : float
Returns: float

Example