16 #ifndef _VW_REGRESSOR_H__
17 #define _VW_REGRESSOR_H__
67 return loss->
loss(prediction, label);
105 virtual const char*
get_name()
const {
return "VwRegressor"; }
126 #endif // _VW_REGRESSOR_H__
double norm(double *v, double p, int n)
Class CLossFunction is the base class of all loss functions.
virtual void load_regressor(char *file_name)
virtual const char * get_name() const
virtual float64_t get_update(float64_t prediction, float64_t label, float64_t eta_t, float64_t norm)=0
Class CVwEnvironment is the environment used by VW.
CLossFunction * loss
Loss function.
float32_t ** weight_vectors
Weight vectors, one array for each thread.
float64_t get_loss(float64_t prediction, float64_t label)
Class SGObject is the base class of all shogun objects.
virtual float64_t loss(float64_t prediction, float64_t label)
all of classes and functions are contained in the shogun namespace
CVwEnvironment * env
Environment.
virtual void dump_regressor(char *reg_name, bool as_text)
float64_t get_update(float64_t prediction, float64_t label, float64_t eta_t, float64_t norm)