OpenNN
Open-source neural networks library
Loading...
Searching...
No Matches
variable.h File Reference
#include "pch.h"
#include "tensor_utilities.h"
#include "enum_map.h"

Go to the source code of this file.

Classes

struct  opennn::Variable
 Single dataset column descriptor: name, role, type, scaler, and optional categories. More...
 

Namespaces

namespace  opennn
 

Enumerations

enum class  opennn::VariableType {
  opennn::None , opennn::Numeric , opennn::Binary , opennn::Categorical ,
  opennn::DateTime , opennn::Constant
}
 Data type of a dataset Variable. More...
 
enum class  opennn::ScalerMethod {
  opennn::None , opennn::MinimumMaximum , opennn::MeanStandardDeviation , opennn::StandardDeviation ,
  opennn::Logarithm , opennn::ImageMinMax
}
 Feature scaling strategy applied to a Variable before training. More...
 
enum class  opennn::VariableRole {
  opennn::None , opennn::Input , opennn::Target , opennn::Decoder ,
  opennn::InputTarget , opennn::Time
}
 Role a Variable plays in a dataset (input feature, target, decoder, time axis, etc.). More...
 

Functions

const EnumMap< VariableType > & opennn::variable_type_map ()
 Returns the bidirectional string/enum map for VariableType.
 
const string & opennn::variable_type_to_string (VariableType type)
 Returns the canonical string name for a VariableType.
 
VariableType opennn::string_to_variable_type (const string &name)
 Parses a string into the matching VariableType enumerator.
 
const EnumMap< ScalerMethod > & opennn::scaler_method_map ()
 Returns the bidirectional string/enum map for ScalerMethod.
 
const string & opennn::scaler_method_to_string (ScalerMethod method)
 Returns the canonical string name for a ScalerMethod.
 
ScalerMethod opennn::string_to_scaler_method (const string &name)
 Parses a string into the matching ScalerMethod enumerator.
 
const EnumMap< VariableRole > & opennn::variable_role_map ()
 Returns the bidirectional string/enum map for VariableRole.
 
const string & opennn::variable_role_to_string (VariableRole role)
 Returns the canonical string name for a VariableRole.
 
VariableRole opennn::string_to_variable_role (const string &name)
 Parses a string into a VariableRole; "Id" is mapped to VariableRole::None.
 
bool opennn::role_matches (VariableRole actual, VariableRole query)
 Returns true if actual satisfies query, treating InputTarget as Input or Target.