DiSMEC++
regularizers.h
Go to the documentation of this file.
1 // Copyright (c) 2021, Aalto University, developed by Erik Schultheis
2 // All rights reserved.
3 //
4 // SPDX-License-Identifier: MIT
5 
6 #ifndef DISMEC_SRC_OBJECTIVE_REGULARIZERS_H
7 #define DISMEC_SRC_OBJECTIVE_REGULARIZERS_H
8 
9 #include <memory>
10 
11 using real_t = float;
12 
13 namespace dismec::objective {
14  class Objective;
18 
19  std::unique_ptr<Objective> make_regularizer(const SquaredNormConfig& config);
20  std::unique_ptr<Objective> make_regularizer(const HuberConfig& config);
21  std::unique_ptr<Objective> make_regularizer(const ElasticConfig& config);
22 }
23 
24 #endif //DISMEC_SRC_OBJECTIVE_REGULARIZERS_H
std::unique_ptr< Objective > make_regularizer(const SquaredNormConfig &config)
float real_t
The default type for floating point values.
Definition: config.h:17
float real_t
Definition: regularizers.h:11