SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
IndividualJobResultAggregator.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  * Written (W) 2013 Soumyajit De
8  */
9 
10 #ifndef INDIVIDUAL_JOB_RESULT_AGGREGATOR_H_
11 #define INDIVIDUAL_JOB_RESULT_AGGREGATOR_H_
12 
13 #include <shogun/lib/config.h>
15 
16 #ifdef HAVE_EIGEN3
17 
18 namespace shogun
19 {
20 class CJobResult;
21 template<class T> class SGVector;
22 template<class T> class CLinearOperator;
23 
32 {
33 public:
36 
48  linear_operator, SGVector<float64_t> vector,
49  const float64_t& const_multiplier);
50 
53 
58  virtual void finalize();
59 
61  virtual const char* get_name() const
62  {
63  return "IndividualJobResultAggregator";
64  }
65 private:
67  CLinearOperator<float64_t>* m_linear_operator;
68 
70  SGVector<float64_t> m_vector;
71 
73  const float64_t m_const_multiplier;
74 
76  void init();
77 };
78 
79 }
80 
81 #endif // HAVE_EIGEN3
82 #endif // INDIVIDUAL_JOB_RESULT_AGGREGATOR_H_
Abstract template class that aggregates vector job results in each submit_result call, finalize is abstract.
Class that aggregates vector job results in each submit_result call of jobs generated from rational a...
double float64_t
Definition: common.h:50
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18

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