C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

model.h
1 /* file: model.h */
2 /*******************************************************************************
3 * Copyright 2014-2020 Intel Corporation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *******************************************************************************/
17 
18 /*
19 //++
20 // Data model classes declarations
21 //--
22 */
23 
24 #ifndef __MODEL_H__
25 #define __MODEL_H__
26 
27 #include "data_management/data/data_archive.h"
28 #include "services/base.h"
29 #include "services/daal_defines.h"
30 
31 namespace daal
32 {
33 namespace algorithms
34 {
35 
39 namespace interface1
40 {
45 struct ValidationMetricIface {};
46 
54 class Model : public data_management::SerializationIface
55 {
56 public:
58  Model()
59  {}
60 
61  virtual ~Model() {}
62 
66  int getSerializationTag() const DAAL_C11_OVERRIDE { return 0; }
67 
68 protected:
69  template<typename Archive, bool onDeserialize>
70  services::Status serialImpl(Archive *arch)
71  {
72  return services::Status();
73  }
74 
75  DECLARE_SERIALIZABLE_IMPL();
76 };
77 typedef services::SharedPtr<Model> ModelPtr;
79 } // namespace interface1
80 using interface1::ValidationMetricIface;
81 using interface1::Model;
82 using interface1::ModelPtr;
83 
84 }
85 } // namespace daal
86 #endif
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:54
daal::algorithms::interface1::ValidationMetricIface
Definition: model.h:45
daal::algorithms::interface1::Model::getSerializationTag
int getSerializationTag() const DAAL_C11_OVERRIDE
Definition: model.h:66
daal::algorithms::interface1::Model::Model
Model()
Definition: model.h:58
daal_defines.h

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