1#ifndef _FTR_FEATURE_GEN_EXTRACT_TABLE_H_
2#define _FTR_FEATURE_GEN_EXTRACT_TABLE_H_
16 float parsed_min_range;
17 float parsed_max_range;
30 KeyRule(
const string &signal,
const string &type_str,
const string &value);
53 bool join(
const vector<float> &join_vals)
const;
66 vector<MapRules> key_rules;
67 vector<string> extracted_names;
76 void read_rule_table_files();
77 int missing_values_cnt;
88 missing_values_cnt = 0;
99 int init(map<string, string>& mapper);
FeatureGenerator : creating features from raw signals.
@ FTR_GEN_EXTRACT_TBL
"extract_tbl" - extract values from table with keys and rules to join with each patient....
Definition FeatureGenerator.h:44
#define ADD_SERIALIZATION_FUNCS(...)
Definition SerializableObject.h:122
#define MEDSERIALIZE_SUPPORT(Type)
Definition SerializableObject.h:108
Definition FeatureGenerator.h:53
int iGenerateWeights
Feature/Weights generator.
Definition FeatureGenerator.h:72
vector< string > tags
Tags - for defining labels or groups. may be used later for filtering for example.
Definition FeatureGenerator.h:69
FeatureGeneratorTypes generator_type
Type.
Definition FeatureGenerator.h:57
float missing_val
Missing value.
Definition FeatureGenerator.h:66
vector< string > names
Feature name.
Definition FeatureGenerator.h:60
A class that represent a simple rule to calculate when "joining" with patient sample.
Definition FeatureGenExtractTable.h:14
string rep_signal
the repository target signal
Definition FeatureGenExtractTable.h:22
void init_lut(MedDictionarySections &dict)
function to store lut
Definition FeatureGenExtractTable.cpp:57
bool test_rule(float val) const
tests the value condition with the rule
Definition FeatureGenExtractTable.cpp:306
string rule_value
the rule value to match
Definition FeatureGenExtractTable.h:26
Rule_Type type
the rule type
Definition FeatureGenExtractTable.h:25
A class that represents set of rules with AND condition to join with each sample.
Definition FeatureGenExtractTable.h:47
bool join(const vector< float > &join_vals) const
test for full join condition with the rules
Definition FeatureGenExtractTable.cpp:320
vector< float > values
the matched values for each "join". the names are in different file
Definition FeatureGenExtractTable.h:50
vector< KeyRule > rules
the rules with AND condition. the rules are prioritories by order the more specific to less specific
Definition FeatureGenExtractTable.h:49
Definition MedDictionary.h:87
A class for holding features data as a virtual matrix
Definition MedFeatures.h:47
Definition MedPidRepository.h:87
MedSamples represent a collection of samples per different id The data is conatined in a vector of ...
Definition MedSamples.h:129
Definition MedSignals.h:719
Definition MedPidRepository.h:127
Definition SerializableObject.h:32