Ignore:
Timestamp:
Nov 5, 2009, 2:07:09 AM (12 years ago)
Author:
Peter
Message:

fixes #542 - modified SVM::predict to calculate predictions as geometric distance from decision hyperplane.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.5-stable/yat/classifier/SVM.cc

    r1592 r2096  
    66  Copyright (C) 2007 Jari Häkkinen, Peter Johansson
    77  Copyright (C) 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér
     8  Copyright (C) 2009 Peter Johansson
    89
    910  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    8990        margin_ += 2*alpha_(i)*target(i)*kernel_mod(i,j)*alpha_(j)*target(j);
    9091    }
     92    margin_ = std::sqrt(margin_);
    9193  }
    9294
Note: See TracChangeset for help on using the changeset viewer.