Changeset 2427 for trunk/sources
- Timestamp:
- 10/14/09 16:37:59 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/LibSVM/Solver.cs
r2415 r2427 404 404 405 405 // return 1 if already optimal, return 0 otherwise 406 int select_working_set(int[] working_set)406 protected virtual int select_working_set(int[] working_set) 407 407 { 408 408 // return i,j such that … … 523 523 } 524 524 525 void do_shrinking()525 protected virtual void do_shrinking() 526 526 { 527 527 int i; … … 583 583 } 584 584 585 double calculate_rho()585 protected virtual double calculate_rho() 586 586 { 587 587 double r; … … 641 641 642 642 // return 1 if already optimal, return 0 otherwise 643 pr ivateint select_working_set(int[] working_set)643 protected override sealed int select_working_set(int[] working_set) 644 644 { 645 645 // return i,j such that y_i = y_j and … … 773 773 } 774 774 775 pr ivatevoid do_shrinking()775 protected override sealed void do_shrinking() 776 776 { 777 777 double GMax1 = -INF; // Max { -y_i * grad(f)_i | y_i = +1, i in I_up(\alpha) } … … 825 825 } 826 826 827 pr ivatedouble calculate_rho()827 protected override sealed double calculate_rho() 828 828 { 829 829 int nr_free1 = 0, nr_free2 = 0;
Note: See TracChangeset
for help on using the changeset viewer.