Rosetta
|
Public Member Functions | |
Solver_NU () | |
void | Solve (int l, const QMatrix &Q, const double *p, const schar *y, double *alpha, double Cp, double Cn, double eps, SolutionInfo *si, int shrinking) |
![]() | |
Solver () | |
virtual | ~Solver () |
void | Solve (int l, const QMatrix &Q, const double *p_, const schar *y_, double *alpha_, double Cp, double Cn, double eps, SolutionInfo *si, int shrinking) |
Private Member Functions | |
int | select_working_set (int &i, int &j) |
double | calculate_rho () |
bool | be_shrunk (int i, double Gmax1, double Gmax2, double Gmax3, double Gmax4) |
void | do_shrinking () |
Private Attributes | |
SolutionInfo * | si |
Additional Inherited Members | |
![]() | |
enum | { LOWER_BOUND, UPPER_BOUND, FREE } |
![]() | |
double | get_C (int i) |
void | update_alpha_status (int i) |
bool | is_upper_bound (int i) |
bool | is_lower_bound (int i) |
bool | is_free (int i) |
void | swap_index (int i, int j) |
void | reconstruct_gradient () |
![]() | |
int | active_size |
schar * | y |
double * | G |
char * | alpha_status |
double * | alpha |
const QMatrix * | Q |
const double * | QD |
double | eps |
double | Cp |
double | Cn |
double * | p |
int * | active_set |
double * | G_bar |
int | l |
bool | unshrink |
Definition at line 1098 of file Svm.cc.
References Solver::G, Solver::is_lower_bound(), Solver::is_upper_bound(), and Solver::y.
Referenced by do_shrinking().
|
privatevirtual |
Reimplemented from Solver.
Definition at line 1160 of file Svm.cc.
References Solver::active_size, Solver::G, INF, Solver::is_lower_bound(), Solver::is_upper_bound(), max(), min(), Solver::SolutionInfo::r, test.Workshop3test::r1, test.Workshop3test::r2, si, and Solver::y.
|
privatevirtual |
Reimplemented from Solver.
Definition at line 1117 of file Svm.cc.
References Solver::active_size, be_shrunk(), Solver::eps, Solver::G, INF, Solver::is_lower_bound(), Solver::is_upper_bound(), Solver::l, max(), Solver::reconstruct_gradient(), Solver::swap_index(), Solver::unshrink, and Solver::y.
Reimplemented from Solver.
Definition at line 990 of file Svm.cc.
References Solver::active_size, Solver::eps, Solver::G, QMatrix::get_Q(), INF, Solver::is_lower_bound(), Solver::is_upper_bound(), max(), Solver::Q, Solver::QD, TAU, and Solver::y.
|
inline |
Definition at line 974 of file Svm.cc.
References si, and Solver::Solve().
Referenced by solve_nu_svc(), and solve_nu_svr().
|
private |
Definition at line 982 of file Svm.cc.
Referenced by calculate_rho(), and Solve().