22 initialize_parameters();
23 register_parameters();
32 initialize_parameters();
33 register_parameters();
40 void CMultitaskLeastSquaresRegression::register_parameters()
50 void CMultitaskLeastSquaresRegression::initialize_parameters()
104 ASSERT(regularization==0 || regularization==1)
109 ASSERT(termination>=0 && termination<=4)
136 slep_options options = slep_options::default_options();
146 switch (relation_type)
151 options.mode = MULTITASK_GROUP;
152 options.loss = LEAST_SQUARES;
162 options.ind_t = ind_t.
vector;
163 options.n_nodes = ind_t.
vlen/3;
164 options.mode = MULTITASK_TREE;
165 options.loss = LEAST_SQUARES;
172 SG_ERROR(
"Not supported task relation type\n")
175 SG_FREE(options.tasks_indices);
void set_regularization(int32_t regularization)
Real Labels are real-valued labels.
int32_t get_regularization() const
Vector::Scalar dot(Vector a, Vector b)
The class Labels models labels, i.e. class assignments of objects.
virtual float64_t dense_dot(int32_t vec_idx1, const float64_t *vec2, int32_t vec2_len)=0
int32_t get_termination() const
int32_t get_max_iter() const
#define SG_NOTIMPLEMENTED
CMultitaskLeastSquaresRegression()
virtual bool train_machine(CFeatures *data=NULL)
Features that support dot products among other operations.
void set_termination(int32_t termination)
SGVector< float64_t > get_SLEP_ind_t()
virtual ETaskRelationType get_relation_type() const =0
CTaskRelation * m_task_relation
virtual void set_features(CDotFeatures *feat)
T * get_column_vector(index_t col) const
virtual int32_t get_num_tasks() const =0
virtual ~CMultitaskLeastSquaresRegression()
void set_tolerance(float64_t tolerance)
slep_result_t slep_solver(CDotFeatures *features, double *y, double z, const slep_options &options)
class MultitaskLinearMachine, a base class for linear multitask classifiers
SGMatrix< float64_t > m_tasks_w
virtual float64_t apply_one(int32_t i)
all of classes and functions are contained in the shogun namespace
float64_t get_tolerance() const
The class Features is the base class of all feature objects.
class TaskTree used to represent a tree of tasks. Tree is constructed via task with subtasks (and sub...
void set_max_iter(int32_t max_iter)
SGVector< float64_t > m_tasks_c
used to represent tasks in multitask learning
virtual bool train_locked_implementation(SGVector< index_t > *tasks)
virtual SGVector< index_t > * get_tasks_indices() const =0