
Public Member Functions | |
| 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) |
Protected Types | |
| enum | { LOWER_BOUND, UPPER_BOUND, FREE } |
Protected Member Functions | |
| 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 () |
| virtual int | select_working_set (int &i, int &j) |
| virtual double | calculate_rho () |
| virtual void | do_shrinking () |
Protected Attributes | |
| int | active_size |
| schar * | y |
| double * | G |
| char * | alpha_status |
| double * | alpha |
| const QMatrix * | Q |
| const Qfloat * | QD |
| double | eps |
| double | Cp |
| double | Cn |
| double * | p |
| int * | active_set |
| double * | G_bar |
| int | l |
| bool | unshrinked |
Private Member Functions | |
| bool | be_shrunken (int i, double Gmax1, double Gmax2) |
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
Definition at line 882 of file svm.cpp. References G, is_lower_bound(), is_upper_bound(), and y. Referenced by do_shrinking(). |
|
|
Reimplemented in celeste::Solver_NU. Definition at line 979 of file svm.cpp. References G, is_lower_bound(), is_upper_bound(), celeste::max(), celeste::min(), and y. Referenced by Solve(). |
|
|
Reimplemented in celeste::Solver_NU. Definition at line 902 of file svm.cpp. References be_shrunken(), eps, G, is_lower_bound(), is_upper_bound(), l, reconstruct_gradient(), swap_index(), unshrinked, and y. Referenced by Solve(). |
|
|
Definition at line 458 of file svm.cpp. Referenced by Solve(). |
|
|
Definition at line 472 of file svm.cpp. Referenced by reconstruct_gradient(). |
|
|
Definition at line 471 of file svm.cpp. Referenced by celeste::Solver_NU::be_shrunken(), be_shrunken(), celeste::Solver_NU::calculate_rho(), calculate_rho(), celeste::Solver_NU::do_shrinking(), do_shrinking(), celeste::Solver_NU::select_working_set(), select_working_set(), and Solve(). |
|
|
Definition at line 470 of file svm.cpp. Referenced by celeste::Solver_NU::be_shrunken(), be_shrunken(), celeste::Solver_NU::calculate_rho(), calculate_rho(), celeste::Solver_NU::do_shrinking(), do_shrinking(), celeste::Solver_NU::select_working_set(), select_working_set(), and Solve(). |
|
|
Definition at line 494 of file svm.cpp. References active_size, alpha, G, G_bar, celeste::QMatrix::get_Q(), is_free(), p, Q, and celeste::Qfloat. Referenced by celeste::Solver_NU::do_shrinking(), do_shrinking(), and Solve(). |
|
||||||||||||
|
Reimplemented in celeste::Solver_NU. Definition at line 783 of file svm.cpp. References G, celeste::QMatrix::get_Q(), is_lower_bound(), is_upper_bound(), Q, QD, celeste::Qfloat, and y. Referenced by Solve(). |
|
||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
|
Definition at line 482 of file svm.cpp. References active_set, alpha, alpha_status, G, G_bar, p, Q, celeste::swap(), celeste::QMatrix::swap_index(), and y. Referenced by celeste::Solver_NU::do_shrinking(), and do_shrinking(). |
|
|
Definition at line 462 of file svm.cpp. Referenced by Solve(). |
|
|
Definition at line 453 of file svm.cpp. Referenced by Solve(), and swap_index(). |
|
|
Definition at line 442 of file svm.cpp. Referenced by reconstruct_gradient(), and Solve(). |
|
|
Definition at line 447 of file svm.cpp. Referenced by reconstruct_gradient(), Solve(), and swap_index(). |
|
|
Definition at line 446 of file svm.cpp. Referenced by Solve(), and swap_index(). |
|
|
|
|
|
|
|
|
Definition at line 450 of file svm.cpp. Referenced by do_shrinking(). |
|
|
Definition at line 444 of file svm.cpp. Referenced by be_shrunken(), calculate_rho(), do_shrinking(), reconstruct_gradient(), select_working_set(), Solve(), and swap_index(). |
|
|
Definition at line 454 of file svm.cpp. Referenced by reconstruct_gradient(), Solve(), and swap_index(). |
|
|
Definition at line 455 of file svm.cpp. Referenced by do_shrinking(). |
|
|
Definition at line 452 of file svm.cpp. Referenced by reconstruct_gradient(), Solve(), and swap_index(). |
|
|
Definition at line 448 of file svm.cpp. Referenced by reconstruct_gradient(), select_working_set(), and swap_index(). |
|
|
Definition at line 449 of file svm.cpp. Referenced by select_working_set(), and Solve(). |
|
|
Definition at line 456 of file svm.cpp. Referenced by do_shrinking(), and Solve(). |
|
|
Definition at line 443 of file svm.cpp. Referenced by be_shrunken(), calculate_rho(), do_shrinking(), select_working_set(), Solve(), and swap_index(). |
1.3.9.1