SHOGUN  6.0.0
CoverTreeKNNSolver.h
Go to the documentation of this file.
1 /* This software is distributed under BSD 3-clause license (see LICENSE file).
2  *
3  * Copyright (c) 2012-2013 Sergey Lisitsyn
4  */
5 
6 
7 #ifndef COVERTREESOLVER_H__
8 #define COVERTREESOLVER_H__
9 
10 #include <shogun/lib/config.h>
11 
12 #include <shogun/lib/common.h>
15 
16 namespace shogun
17 {
18 
25 {
26  public:
29  { /* nothing to do */ }
30 
32  virtual ~CCoverTreeKNNSolver() { /* nothing to do */ }
33 
42  CCoverTreeKNNSolver(const int32_t k, const float64_t q, const int32_t num_classes, const int32_t min_label, const SGVector<int32_t> train_labels);
43 
44  virtual CMulticlassLabels* classify_objects(CDistance* d, const int32_t num_lab, SGVector<int32_t>& train_lab, SGVector<float64_t>& classes) const;
45 
46  virtual SGVector<int32_t> classify_objects_k(CDistance* d, const int32_t num_lab, SGVector<int32_t>& train_lab, SGVector<int32_t>& classes) const;
47 
49  const char* get_name() const { return "CoverTreeKNNSolver"; }
50 
51 };
52 }
53 
54 #endif
Class Distance, a base class for all the distances used in the Shogun toolbox.
Definition: Distance.h:87
virtual SGVector< int32_t > classify_objects_k(CDistance *d, const int32_t num_lab, SGVector< int32_t > &train_lab, SGVector< int32_t > &classes) const
Multiclass Labels for multi-class classification.
double float64_t
Definition: common.h:60
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
virtual CMulticlassLabels * classify_objects(CDistance *d, const int32_t num_lab, SGVector< int32_t > &train_lab, SGVector< float64_t > &classes) const
const char * get_name() const

SHOGUN Machine Learning Toolbox - Documentation