Package model_descriptions :: Module least_squares_ball
[hide private]
[frames] | no frames]

Module least_squares_ball

source code

This module contains ell2 ball constraint avg function.

Functions [hide private]
 
ell2_ball_constraint_avg_fnc(w, x, y, stepsize, w_hat, steps)
Calculates ell2 ball constraint avg
source code
Function Details [hide private]

ell2_ball_constraint_avg_fnc(w, x, y, stepsize, w_hat, steps)

source code 

Calculates ell2 ball constraint avg

Parameters:
  • w (vector) - model vector
  • x (vector) - feature vector of the example
  • y (number) - label of the example
  • stepsize (double) - step size
  • w_hat (vector) - w hat
  • steps (number) - number of steps