-Copyright (c) 2007-2019 The LIBLINEAR Project.
+Copyright (c) 2007-2020 The LIBLINEAR Project.
All rights reserved.
Redistribution and use in source and binary forms, with or without
ret += x->value*x->value;
x++;
}
- return (ret);
+ return ret;
}
static double dot(const double *s, const feature_node *x)
ret += s[x->index-1]*x->value;
x++;
}
- return (ret);
+ return ret;
}
static double sparse_dot(const feature_node *x1, const feature_node *x2)
++x1;
}
}
- return (ret);
+ return ret;
}
static void axpy(const double a, const feature_node *x, double *y)
f += C_times_loss(i, wx[i]);
f = f + 0.5 * wTw;
- return(f);
+ return f;
}
int l2r_erm_fun::get_nr_variable(void)
newton_obj.set_print_string(liblinear_print_string);
newton_obj.newton(w);
break;
-
}
case L2R_L1LOSS_SVR_DUAL:
{