13 #ifndef _LIBLINEARMTL_H___
14 #define _LIBLINEARMTL_H___
48 std::map<index_t, float64_t>::const_iterator it =
data[i_row].find(i_col);
50 if (it !=
data[i_row].end())
71 data.push_back(std::map<index_t, float64_t>());
84 std::vector< std::map<index_t, float64_t> >
data;
161 virtual const char*
get_name()
const {
return "LibLinearMTL"; }
185 SG_ERROR(
"Please assign labels first!\n")
189 if (num_labels!=linear_term.
vlen)
191 SG_ERROR(
"Number of labels (%d) does not match number"
192 " of entries (%d) in linear term \n", num_labels,
242 for(int32_t k=0; k<w_size*
num_tasks; k++)
253 for(int32_t i=0; i<w_size; i++)
255 W.
matrix[t*w_size + i] += sim_ts * v_s[i];
306 void solve_l2r_l1l2_svc(
307 const liblinear_problem *prob,
double eps,
double Cp,
double Cn);
357 #endif //_LIBLINEARMTL_H___