SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
TaskRelation.h
浏览该文件的文档.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Copyright (C) 2012 Sergey Lisitsyn
8  */
9 
10 #ifndef TASKRELATION_H_
11 #define TASKRELATION_H_
12 #define IGNORE_IN_CLASSLIST
13 
14 #include <shogun/lib/config.h>
15 
16 #include <shogun/base/SGObject.h>
17 
18 namespace shogun
19 {
20 
21 #ifndef DOXYGEN_SHOULD_SKIP_THIS
22 IGNORE_IN_CLASSLIST enum ETaskRelationType
23 {
24  TASK_TREE,
25  TASK_GROUP
26 };
27 #endif
28 
31 class CTaskRelation : public CSGObject
32 {
33 public:
34 
37  {
38  }
39 
41  virtual ~CTaskRelation()
42  {
43  }
44 
49  virtual const char* get_name() const { return "TaskRelation"; };
50 
55  virtual ETaskRelationType get_relation_type() const = 0;
56 
61  virtual SGVector<index_t>* get_tasks_indices() const = 0;
62 
67  virtual int32_t get_num_tasks() const = 0;
68 };
69 
70 }
71 #endif
virtual const char * get_name() const
Definition: TaskRelation.h:49
virtual ~CTaskRelation()
Definition: TaskRelation.h:41
#define IGNORE_IN_CLASSLIST
Definition: TaskRelation.h:12
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:112
virtual ETaskRelationType get_relation_type() const =0
virtual int32_t get_num_tasks() const =0
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
used to represent tasks in multitask learning
Definition: TaskRelation.h:31
virtual SGVector< index_t > * get_tasks_indices() const =0

SHOGUN 机器学习工具包 - 项目文档