SHOGUN  5.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
MultitaskTraceLogisticRegression.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 
11 #ifndef MULTITASKTRACELOGISTICREGRESSION_H_
12 #define MULTITASKTRACELOGISTICREGRESSION_H_
13 
14 #include <shogun/lib/config.h>
15 #ifdef USE_GPL_SHOGUN
16 
18 
19 namespace shogun
20 {
26 class CMultitaskTraceLogisticRegression : public CMultitaskLogisticRegression
27 {
28 
29  public:
31 
32 
33  CMultitaskTraceLogisticRegression();
34 
42  CMultitaskTraceLogisticRegression(
43  float64_t rho, CDotFeatures* training_data,
44  CBinaryLabels* training_labels, CTaskGroup* task_relation);
45 
47  virtual ~CMultitaskTraceLogisticRegression();
48 
52  void set_rho(float64_t rho);
53 
57  float64_t get_rho() const;
58 
63  virtual const char* get_name() const
64  {
65  return "MultitaskTraceLogisticRegression";
66  }
67 
68  private:
69 
71  void init();
72 
73  protected:
74 
76  virtual bool train_machine(CFeatures* data=NULL);
77 
79  virtual bool train_locked_implementation(SGVector<index_t>* tasks);
80 
81  protected:
82 
84  float64_t m_rho;
85 
86 };
87 }
88 #endif //USE_GPL_SHOGUN
89 #endif
90 
#define MACHINE_PROBLEM_TYPE(PT)
Definition: Machine.h:120
double float64_t
Definition: common.h:50
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18

SHOGUN Machine Learning Toolbox - Documentation