C++ API Reference for Intel® Data Analytics Acceleration Library 2019

model.h
1 /* file: model.h */
2 /*******************************************************************************
3 * Copyright 2014-2018 Intel Corporation.
4 *
5 * This software and the related documents are Intel copyrighted materials, and
6 * your use of them is governed by the express license under which they were
7 * provided to you (License). Unless the License provides otherwise, you may not
8 * use, modify, copy, publish, distribute, disclose or transmit this software or
9 * the related documents without Intel's prior written permission.
10 *
11 * This software and the related documents are provided as is, with no express
12 * or implied warranties, other than those that are expressly stated in the
13 * License.
14 *******************************************************************************/
15 
16 /*
17 //++
18 // Data model classes declarations
19 //--
20 */
21 
22 #ifndef __MODEL_H__
23 #define __MODEL_H__
24 
25 #include "data_management/data/data_archive.h"
26 #include "services/base.h"
27 #include "services/daal_defines.h"
28 
29 namespace daal
30 {
31 namespace algorithms
32 {
33 
37 namespace interface1
38 {
43 struct ValidationMetricIface {};
44 
52 class Model : public data_management::SerializationIface
53 {
54 public:
56  Model()
57  {}
58 
59  virtual ~Model() {}
60 
64  int getSerializationTag() const DAAL_C11_OVERRIDE { return 0; }
65 
66 protected:
67  template<typename Archive, bool onDeserialize>
68  services::Status serialImpl(Archive *arch)
69  {
70  return services::Status();
71  }
72 
73  DECLARE_SERIALIZABLE_IMPL();
74 };
75 typedef services::SharedPtr<Model> ModelPtr;
77 } // namespace interface1
78 using interface1::ValidationMetricIface;
79 using interface1::Model;
80 using interface1::ModelPtr;
81 
82 }
83 } // namespace daal
84 #endif
daal::algorithms::interface1::Model::getSerializationTag
int getSerializationTag() const DAAL_C11_OVERRIDE
Definition: model.h:64
daal
Definition: algorithm_base_common.h:31
daal_defines.h
daal::algorithms::interface1::Model::Model
Model()
Definition: model.h:56
daal::algorithms::interface1::ValidationMetricIface
Definition: model.h:43
daal::algorithms::interface1::Model
The base class for the classes that represent the models, such as linear_regression::Model or svm::Mo...
Definition: model.h:52

For more complete information about compiler optimizations, see our Optimization Notice.