source: trunk/lib/classifier/SupervisedClassifier.cc @ 543

Last change on this file since 543 was 543, checked in by Peter, 16 years ago

moved destruction of ranker to SupervisedClassifier?

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 659 bytes
Line 
1// $Id: SupervisedClassifier.cc 543 2006-03-05 16:42:38Z peter $
2
3#include <c++_tools/classifier/SupervisedClassifier.h>
4#include <c++_tools/classifier/InputRanker.h>
5
6namespace theplu {
7namespace classifier {
8
9  SupervisedClassifier::SupervisedClassifier(const Target& target)
10    : target_(target), score_(0), ranker_(0), nof_inputs_(0),
11      trained_(false)
12  {
13  }
14
15  SupervisedClassifier::SupervisedClassifier(const Target& target,
16                                             statistics::Score* score,
17                                             const size_t nof_inputs)
18    : target_(target), score_(score), ranker_(0), nof_inputs_(nof_inputs),
19      trained_(false)
20  {
21  }
22
23  SupervisedClassifier::~SupervisedClassifier()
24  {
25    if(ranker_)
26      delete ranker_;
27  }
28
29
30}}
Note: See TracBrowser for help on using the repository browser.