SHOGUN  5.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
TaskGroup.h
Go to the documentation of this file.
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 TASKGROUP_H_
11 #define TASKGROUP_H_
12 
13 #include <shogun/lib/config.h>
14 
15 #include <shogun/base/SGObject.h>
19 
20 namespace shogun
21 {
22 
28 class CTaskGroup : public CTaskRelation
29 {
30 public:
31 
33  CTaskGroup();
34 
36  virtual ~CTaskGroup();
37 
42  virtual SGVector<index_t>* get_tasks_indices() const;
43 
48  void append_task(CTask* task);
49 
54  virtual int32_t get_num_tasks() const;
55 
60  const char* get_name() const { return "TaskGroup"; };
61 
66  ETaskRelationType get_relation_type() const { return TASK_GROUP; }
67 
68 private:
69 
71  void init();
72 
73 protected:
74 
77 
78 };
79 }
80 #endif
81 
class Task used to represent tasks in multitask learning. Essentially it represent a set of feature v...
Definition: Task.h:27
virtual ~CTaskGroup()
Definition: TaskGroup.cpp:19
ETaskRelationType get_relation_type() const
Definition: TaskGroup.h:66
class TaskGroup used to represent a group of tasks. Tasks in group do not overlap.
Definition: TaskGroup.h:28
CDynamicObjectArray * m_tasks
Definition: TaskGroup.h:76
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
void append_task(CTask *task)
Definition: TaskGroup.cpp:29
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
virtual int32_t get_num_tasks() const
Definition: TaskGroup.cpp:34
const char * get_name() const
Definition: TaskGroup.h:60
used to represent tasks in multitask learning
Definition: TaskRelation.h:31
virtual SGVector< index_t > * get_tasks_indices() const
Definition: TaskGroup.cpp:39

SHOGUN Machine Learning Toolbox - Documentation