|
void | set_names () |
|
void | get_required_signal_categories (unordered_map< string, vector< string > > &signal_categories_in_use) const |
| returns for each used signal it's used categories
|
|
void | set (string &_signalName, BasicFeatureTypes _type) |
|
void | set (string &_signalName, BasicFeatureTypes _type, int _time_win_from, int _time_win_to) |
|
BasicFeatureTypes | name_to_type (const string &name) |
| Converts a name to type - please reffer to BasicFeatureTypes.
|
|
TimeRangeTypes | time_range_name_to_type (const string &name) |
| Conversion between time-range type and name.
|
|
string | time_range_type_to_name (TimeRangeTypes type) |
|
int | init (map< string, string > &mapper) |
| The parsed fields from init command.
|
|
void | init_defaults () |
|
virtual void | copy (FeatureGenerator *generator) |
|
int | _learn (MedPidRepository &rep, const MedSamples &samples, vector< RepProcessor * > processors) |
| Learn a generator.
|
|
int | _generate (PidDynamicRec &rec, MedFeatures &features, int index, int num, vector< float * > &_p_data) |
| generate a new feature
|
|
float | get_value (PidDynamicRec &rec, int index, int time, int outcomeTime) |
|
void | set_signal_ids (MedSignals &sigs) |
| Signal Ids.
|
|
void | init_tables (MedDictionarySections &dict) |
| Init required tables.
|
|
void | prepare (MedFeatures &features, MedPidRepository &rep, MedSamples &samples) |
|
virtual void | get_p_data (MedFeatures &features, vector< float * > &_p_data) |
|
void | get_p_data (MedFeatures &features) |
|
virtual void | clear () |
|
void | get_required_signal_names (unordered_set< string > &signalNames) |
|
virtual void | set_required_signal_ids (MedDictionarySections &dict) |
|
void | get_required_signal_ids (unordered_set< int > &signalIds) |
|
virtual void | get_generated_features (unordered_set< string > &names_list) |
|
virtual void | fit_for_repository (MedPidRepository &rep) |
| Prepartion and adjustment for model based on repository.
|
|
int | learn (MedPidRepository &rep, const MedSamples &samples, vector< RepProcessor * > processors) |
|
int | learn (MedPidRepository &rep, const MedSamples &samples) |
|
int | _generate (PidDynamicRec &in_rep, MedFeatures &features, int index, int num) |
|
int | generate (PidDynamicRec &in_rep, MedFeatures &features, int index, int num) |
|
int | generate (PidDynamicRec &in_rep, MedFeatures &features) |
|
int | generate (MedPidRepository &rep, int id, MedFeatures &features) |
|
int | generate (MedPidRepository &rep, int id, MedFeatures &features, int index, int num) |
|
virtual int | _generate (MedFeatures &features) |
|
int | generate (MedFeatures &features) |
|
virtual int | init (void *generator_params) |
|
virtual int | nfeatures () |
|
virtual int | filter_features (unordered_set< string > &validFeatures) |
| summary> prints summary of generator job.
|
|
virtual void | make_summary () |
|
void * | new_polymorphic (string derived_class_name) |
| for polymorphic classes that want to be able to serialize/deserialize a pointer * to the derived class given its type one needs to implement this function to return a new to the derived class given its type (as in my_type)
|
|
size_t | get_generator_size () |
|
size_t | generator_serialize (unsigned char *blob) |
|
virtual void | print () |
|
virtual void | dprint (const string &pref, int fg_flag) |
|
virtual int | version () const |
| Relevant for serializations.
|
|
virtual string | my_class_name () const |
| For better handling of serializations it is highly recommended that each SerializableObject inheriting class will implement the next method.
|
|
virtual void | serialized_fields_name (vector< string > &field_names) const |
| The names of the serialized fields.
|
|
virtual void | pre_serialization () |
|
virtual void | post_deserialization () |
|
virtual size_t | get_size () |
| Gets bytes sizes for serializations.
|
|
virtual size_t | serialize (unsigned char *blob) |
| Serialiazing object to blob memory. return number ob bytes wrote to memory.
|
|
virtual size_t | deserialize (unsigned char *blob) |
| Deserialiazing blob to object. returns number of bytes read.
|
|
size_t | serialize_vec (vector< unsigned char > &blob) |
|
size_t | deserialize_vec (vector< unsigned char > &blob) |
|
virtual size_t | serialize (vector< unsigned char > &blob) |
|
virtual size_t | deserialize (vector< unsigned char > &blob) |
|
virtual int | read_from_file (const string &fname) |
| read and deserialize model
|
|
virtual int | write_to_file (const string &fname) |
| serialize model and write to file
|
|
virtual int | read_from_file_unsafe (const string &fname) |
| read and deserialize model without checking version number - unsafe read
|
|
int | init_from_string (string init_string) |
| Init from string.
|
|
int | init_params_from_file (string init_file) |
|
int | init_param_from_file (string file_str, string ¶m) |
|
int | update_from_string (const string &init_string) |
|
virtual int | update (map< string, string > &map) |
| Virtual to update object from parsed fields.
|
|
virtual string | object_json () const |
|
|
string | signalName |
|
int | signalId |
|
string | timeRangeSignalName = "" |
|
int | timeRangeSignalId |
|
TimeRangeTypes | timeRangeType = TIME_RANGE_CURRENT |
|
int | time_unit_range_sig = MedTime::Undefined |
| the time init in which the range signal is given. (set correctly from Repository in learn and _generate)
|
|
BasicFeatureTypes | type = FTR_LAST |
|
int | win_from = 0 |
| time window for feature: win_from is the minimal time before from the prediction time
|
|
int | win_to = 360000 |
| time window for feature: win_to is the maximal time before the prediction time
|
|
int | d_win_from = 360 |
| delta time window for the FTR_WIN_DELTA_VALUE feature. the second time window
|
|
int | d_win_to = 360000 |
| delta time window for the FTR_WIN_DELTA_VALUE feature. the second time window
|
|
int | time_unit_win = MedTime::Undefined |
| the time unit in which the windows are given. Default: Undefined
|
|
int | time_channel = 0 |
| n >= 0 : use time channel n , default: 0.
|
|
int | val_channel = 0 |
| n >= 0 : use val channel n , default : 0.
|
|
int | sum_channel = 1 |
| for FTR_CETEGORY_SET_SUM
|
|
vector< string > | sets |
| for FTR_CATEGORY_SET_* , the list of sets
|
|
int | time_unit_sig = MedTime::Undefined |
| the time init in which the signal is given. (set correctly from Repository in learn and _generate)
|
|
string | in_set_name = "" |
| set name (if not given - take list of members)
|
|
bool | bound_outcomeTime = false |
| If true will truncate time window till outcomeTime.
|
|
float | min_value = -FLT_MAX |
|
float | max_value = FLT_MAX |
| values range for FTR_LAST(2)_DAYS
|
|
int | N_th = 0 |
| used in last_nth and category_set_last_nth
|
|
int | zero_missing = 0 |
| in some cases of category_set (or others) we may want to get 0 instead of missing_value, turn this on for that
|
|
float | zero_missing_val = 0 |
| when zero_missing is on - whats the value to store in the missing value feature
|
|
int | full_name = 0 |
| add time and value channels even if 0
|
|
string | rename_signal = "" |
|
vector< char > | lut |
| to be used when generating FTR_CATEGORY_SET_*
|
|
vector< float > | categ_map |
| to be used when applying non FTR_CATEGORY_SET_* types to categorical data
|
|
bool | apply_categ_map |
|
FeatureGeneratorTypes | generator_type = FTR_GEN_LAST |
| Type.
|
|
vector< string > | names |
| Feature name.
|
|
int | learn_nthreads = 16 |
|
int | pred_nthreads = 16 |
|
float | missing_val = (float)MED_MAT_MISSING_VALUE |
| Missing value.
|
|
vector< string > | tags |
| Tags - for defining labels or groups. may be used later for filtering for example.
|
|
int | iGenerateWeights = 0 |
| Feature/Weights generator.
|
|
vector< float * > | p_data |
|
vector< string > | req_signals |
|
vector< int > | req_signal_ids |
|
int | serial_id |
|
A Basic Stats Generator for calcing simple statics on time window.