35 void CMultitaskTraceLogisticRegression::init()
57 for (int32_t i=0; i<y.vlen; i++)
60 malsar_options options = malsar_options::default_options();
65 options.tasks_indices = tasks;
74 SG_WARNING(
"Please install Eigen3 to use MultitaskTraceLogisticRegression\n")
91 for (int32_t i=0; i<y.vlen; i++)
94 malsar_options options = malsar_options::default_options();
108 SG_WARNING(
"Please install Eigen3 to use MultitaskTraceLogisticRegression\n")
113 SG_FREE(options.tasks_indices);
void set_rho(float64_t rho)
virtual int32_t get_num_labels() const =0
class TaskGroup used to represent a group of tasks. Tasks in group do not overlap.
float64_t get_rho() const
Features that support dot products among other operations.
class Multitask Logistic Regression used to solve classification problems with a few tasks related vi...
CTaskRelation * m_task_relation
virtual bool train_machine(CFeatures *data=NULL)
virtual ~CMultitaskTraceLogisticRegression()
virtual void set_features(CDotFeatures *feat)
malsar_result_t malsar_low_rank(CDotFeatures *features, double *y, double rho, const malsar_options &options)
CMultitaskTraceLogisticRegression()
SGMatrix< float64_t > m_tasks_w
all of classes and functions are contained in the shogun namespace
virtual bool train_locked_implementation(SGVector< index_t > *tasks)
The class Features is the base class of all feature objects.
Binary Labels for binary classification.
SGVector< float64_t > m_tasks_c
used to represent tasks in multitask learning