![]() |
KSquare Utilities
|
Inheritance diagram for SVM289_MFS::Solver:Classes | |
| struct | SolutionInfo |
Public Member Functions | |
| Solver () | |
| virtual | ~Solver () |
| void | Solve (kkint32 l, QMatrix &Q, const double *p_, const schar *y_, double *alpha_, double Cp, double Cn, double eps, SolutionInfo *si, kkint32 shrinking) |
Protected Types | |
| enum | { LOWER_BOUND, UPPER_BOUND, FREE } |
Protected Member Functions | |
| virtual double | calculate_rho () |
| virtual void | do_shrinking () |
| double | get_C (kkint32 i) |
| bool | is_free (kkint32 i) |
| bool | is_lower_bound (kkint32 i) |
| bool | is_upper_bound (kkint32 i) |
| void | reconstruct_gradient () |
| virtual kkint32 | select_working_set (kkint32 &i, kkint32 &j) |
| void | swap_index (kkint32 i, kkint32 j) |
| void | update_alpha_status (kkint32 i) |
Protected Attributes | |
| kkint32 * | active_set |
| kkint32 | active_size |
| double * | alpha |
| char * | alpha_status |
| double | Cn |
| double | Cp |
| double | eps |
| double * | G |
| double * | G_bar |
| kkint32 | l |
| double * | p |
| QMatrix * | Q |
| const Qfloat * | QD |
| bool | unshrink |
| schar * | y |
|
protected |
| Enumerator | |
|---|---|
| LOWER_BOUND | |
| UPPER_BOUND | |
| FREE | |
|
inlinevirtual |
|
protectedvirtual |
Definition at line 1786 of file svm2.cpp.
References active_size, G, is_lower_bound(), is_upper_bound(), and y.
Referenced by Solve().
|
protectedvirtual |
Definition at line 1718 of file svm2.cpp.
References active_size, eps, G, info(), is_lower_bound(), is_upper_bound(), l, reconstruct_gradient(), swap_index(), unshrink, and y.
Referenced by Solve().
|
inlineprotected |
|
inlineprotected |
Definition at line 1188 of file svm2.cpp.
References alpha_status, and FREE.
Referenced by reconstruct_gradient().
|
inlineprotected |
Definition at line 1187 of file svm2.cpp.
References alpha_status, and LOWER_BOUND.
Referenced by calculate_rho(), do_shrinking(), select_working_set(), and Solve().
|
inlineprotected |
Definition at line 1186 of file svm2.cpp.
References alpha_status, and UPPER_BOUND.
Referenced by calculate_rho(), do_shrinking(), select_working_set(), and Solve().
|
protected |
Definition at line 1225 of file svm2.cpp.
References active_size, alpha, G, G_bar, SVM289_MFS::QMatrix::get_Q(), info(), is_free(), l, p, and Q.
Referenced by do_shrinking(), and Solve().
Definition at line 1577 of file svm2.cpp.
References active_size, eps, G, SVM289_MFS::QMatrix::get_Q(), is_lower_bound(), is_upper_bound(), Q, QD, and y.
Referenced by Solve().
| void SVM289_MFS::Solver::Solve | ( | kkint32 | l, |
| QMatrix & | Q, | ||
| const double * | p_, | ||
| const schar * | y_, | ||
| double * | alpha_, | ||
| double | Cp, | ||
| double | Cn, | ||
| double | eps, | ||
| SolutionInfo * | si, | ||
| kkint32 | shrinking | ||
| ) |
Definition at line 1278 of file svm2.cpp.
References active_set, active_size, alpha, alpha_status, calculate_rho(), Cn, Cp, do_shrinking(), eps, G, G_bar, get_C(), SVM289_MFS::QMatrix::get_Q(), SVM289_MFS::QMatrix::get_QD(), info(), is_lower_bound(), is_upper_bound(), l, SVM289_MFS::Solver::SolutionInfo::obj, p, Q, QD, reconstruct_gradient(), SVM289_MFS::Solver::SolutionInfo::rho, select_working_set(), unshrink, update_alpha_status(), SVM289_MFS::Solver::SolutionInfo::upper_bound_n, SVM289_MFS::Solver::SolutionInfo::upper_bound_p, and y.
Referenced by SVM289_MFS::Solver_NU::Solve(), SVM289_MFS::solve_c_svc(), SVM289_MFS::solve_epsilon_svr(), and SVM289_MFS::solve_one_class().
Definition at line 1211 of file svm2.cpp.
References Q, and SVM289_MFS::QMatrix::swap_index().
Referenced by do_shrinking().
|
inlineprotected |
Definition at line 1174 of file svm2.cpp.
References alpha, alpha_status, FREE, get_C(), LOWER_BOUND, and UPPER_BOUND.
Referenced by Solve().
|
protected |
|
protected |
Definition at line 1150 of file svm2.cpp.
Referenced by calculate_rho(), do_shrinking(), reconstruct_gradient(), select_working_set(), and Solve().
|
protected |
Definition at line 1155 of file svm2.cpp.
Referenced by reconstruct_gradient(), Solve(), and update_alpha_status().
|
protected |
Definition at line 1154 of file svm2.cpp.
Referenced by is_free(), is_lower_bound(), is_upper_bound(), Solve(), and update_alpha_status().
|
protected |
|
protected |
|
protected |
Definition at line 1158 of file svm2.cpp.
Referenced by do_shrinking(), select_working_set(), and Solve().
|
protected |
Definition at line 1152 of file svm2.cpp.
Referenced by calculate_rho(), do_shrinking(), reconstruct_gradient(), select_working_set(), and Solve().
|
protected |
Definition at line 1163 of file svm2.cpp.
Referenced by reconstruct_gradient(), and Solve().
|
protected |
Definition at line 1164 of file svm2.cpp.
Referenced by do_shrinking(), reconstruct_gradient(), and Solve().
|
protected |
Definition at line 1161 of file svm2.cpp.
Referenced by reconstruct_gradient(), and Solve().
|
protected |
Definition at line 1156 of file svm2.cpp.
Referenced by reconstruct_gradient(), select_working_set(), Solve(), and swap_index().
|
protected |
Definition at line 1157 of file svm2.cpp.
Referenced by select_working_set(), and Solve().
|
protected |
Definition at line 1165 of file svm2.cpp.
Referenced by do_shrinking(), and Solve().
|
protected |
Definition at line 1151 of file svm2.cpp.
Referenced by calculate_rho(), do_shrinking(), get_C(), select_working_set(), and Solve().