![]() |
KSquare Utilities
|
Inheritance diagram for SVM289_BFS::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 |
Definition at line 1163 of file svm289_BFS.cpp.
|
protected |
| Enumerator | |
|---|---|
| LOWER_BOUND | |
| UPPER_BOUND | |
| FREE | |
Definition at line 1192 of file svm289_BFS.cpp.
|
inline |
Definition at line 1165 of file svm289_BFS.cpp.
|
inlinevirtual |
Definition at line 1166 of file svm289_BFS.cpp.
|
protectedvirtual |
Definition at line 1825 of file svm289_BFS.cpp.
References active_size, G, is_lower_bound(), is_upper_bound(), and y.
Referenced by Solve().
|
protectedvirtual |
Definition at line 1757 of file svm289_BFS.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 1227 of file svm289_BFS.cpp.
References alpha_status, and FREE.
Referenced by reconstruct_gradient().
|
inlineprotected |
Definition at line 1226 of file svm289_BFS.cpp.
References alpha_status, and LOWER_BOUND.
Referenced by calculate_rho(), do_shrinking(), select_working_set(), and Solve().
|
inlineprotected |
Definition at line 1225 of file svm289_BFS.cpp.
References alpha_status, and UPPER_BOUND.
Referenced by calculate_rho(), do_shrinking(), select_working_set(), and Solve().
|
protected |
Definition at line 1264 of file svm289_BFS.cpp.
References active_size, alpha, G, G_bar, SVM289_BFS::QMatrix::get_Q(), info(), is_free(), l, p, and Q.
Referenced by do_shrinking(), and Solve().
Definition at line 1616 of file svm289_BFS.cpp.
References active_size, eps, G, SVM289_BFS::QMatrix::get_Q(), is_lower_bound(), is_upper_bound(), Q, QD, and y.
Referenced by Solve().
| void SVM289_BFS::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 1317 of file svm289_BFS.cpp.
References active_set, active_size, alpha, alpha_status, calculate_rho(), Cn, Cp, do_shrinking(), eps, G, G_bar, get_C(), SVM289_BFS::QMatrix::get_Q(), SVM289_BFS::QMatrix::get_QD(), info(), is_lower_bound(), is_upper_bound(), l, SVM289_BFS::Solver::SolutionInfo::obj, p, Q, QD, reconstruct_gradient(), SVM289_BFS::Solver::SolutionInfo::rho, select_working_set(), unshrink, update_alpha_status(), SVM289_BFS::Solver::SolutionInfo::upper_bound_n, SVM289_BFS::Solver::SolutionInfo::upper_bound_p, and y.
Referenced by SVM289_BFS::Solver_NU::Solve(), SVM289_BFS::solve_c_svc(), SVM289_BFS::solve_epsilon_svr(), and SVM289_BFS::solve_one_class().
Definition at line 1250 of file svm289_BFS.cpp.
References Q, and SVM289_BFS::QMatrix::swap_index().
Referenced by do_shrinking().
|
inlineprotected |
Definition at line 1213 of file svm289_BFS.cpp.
References alpha, alpha_status, FREE, get_C(), LOWER_BOUND, and UPPER_BOUND.
Referenced by Solve().
|
protected |
Definition at line 1201 of file svm289_BFS.cpp.
Referenced by Solve().
|
protected |
Definition at line 1189 of file svm289_BFS.cpp.
Referenced by calculate_rho(), do_shrinking(), reconstruct_gradient(), select_working_set(), and Solve().
|
protected |
Definition at line 1194 of file svm289_BFS.cpp.
Referenced by reconstruct_gradient(), Solve(), and update_alpha_status().
|
protected |
Definition at line 1193 of file svm289_BFS.cpp.
Referenced by is_free(), is_lower_bound(), is_upper_bound(), Solve(), and update_alpha_status().
|
protected |
Definition at line 1199 of file svm289_BFS.cpp.
|
protected |
Definition at line 1198 of file svm289_BFS.cpp.
|
protected |
Definition at line 1197 of file svm289_BFS.cpp.
Referenced by do_shrinking(), select_working_set(), and Solve().
|
protected |
Definition at line 1191 of file svm289_BFS.cpp.
Referenced by calculate_rho(), do_shrinking(), reconstruct_gradient(), select_working_set(), and Solve().
|
protected |
Definition at line 1202 of file svm289_BFS.cpp.
Referenced by reconstruct_gradient(), and Solve().
|
protected |
Definition at line 1203 of file svm289_BFS.cpp.
Referenced by do_shrinking(), reconstruct_gradient(), and Solve().
|
protected |
Definition at line 1200 of file svm289_BFS.cpp.
Referenced by reconstruct_gradient(), and Solve().
|
protected |
Definition at line 1195 of file svm289_BFS.cpp.
Referenced by reconstruct_gradient(), select_working_set(), Solve(), and swap_index().
|
protected |
Definition at line 1196 of file svm289_BFS.cpp.
Referenced by select_working_set(), and Solve().
|
protected |
Definition at line 1204 of file svm289_BFS.cpp.
Referenced by do_shrinking(), and Solve().
|
protected |
Definition at line 1190 of file svm289_BFS.cpp.
Referenced by calculate_rho(), do_shrinking(), get_C(), select_working_set(), and Solve().