Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2427 for trunk/sources


Ignore:
Timestamp:
10/14/09 16:37:59 (15 years ago)
Author:
gkronber
Message:

Fixed a major bug in the LibSVM code. #781 (.NET port of LibSVM gives different results when compared to the original LibSVM binaries)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/LibSVM/Solver.cs

    r2415 r2427  
    404404
    405405        // 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)
    407407        {
    408408            // return i,j such that
     
    523523        }
    524524
    525         void do_shrinking()
     525        protected virtual void do_shrinking()
    526526        {
    527527            int i;
     
    583583        }
    584584
    585         double calculate_rho()
     585        protected virtual double calculate_rho()
    586586        {
    587587            double r;
     
    641641
    642642        // return 1 if already optimal, return 0 otherwise
    643         private int select_working_set(int[] working_set)
     643        protected override sealed int select_working_set(int[] working_set)
    644644        {
    645645            // return i,j such that y_i = y_j and
     
    773773        }
    774774
    775         private void do_shrinking()
     775        protected override sealed void do_shrinking()
    776776        {
    777777            double GMax1 = -INF;  // Max { -y_i * grad(f)_i | y_i = +1, i in I_up(\alpha) }
     
    825825        }
    826826
    827         private double calculate_rho()
     827        protected override sealed double calculate_rho()
    828828        {
    829829            int nr_free1 = 0, nr_free2 = 0;
Note: See TracChangeset for help on using the changeset viewer.