|
int | init (map< string, string > &mapper) |
| The parsed fields from init command.
|
|
void | init_defaults () |
|
void | set_names () |
|
virtual void | copy (FeatureGenerator *generator) |
|
int | _learn (MedPidRepository &rep, const MedSamples &samples, vector< RepProcessor * > processors) |
|
int | _generate (PidDynamicRec &rec, MedFeatures &features, int index, int num, vector< float * > &_p_data) |
|
float | get_value (PidDynamicRec &rec, int idx, int time, int sig_outcomeTime) |
|
void | set_signal_ids (MedSignals &sigs) |
|
void | init_tables (MedDictionarySections &dict) |
|
void | get_required_signal_categories (unordered_map< string, vector< string > > &signal_categories_in_use) const |
| returns for each used signal it's used categories
|
|
virtual 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 |
|
int | win_from = 0 |
| time window for feature: from is the minimal time before prediciton time
|
|
int | win_to = 360000 |
| time window for feature: from is the maximal time before prediciton time
|
|
int | time_unit_win = MedTime::Undefined |
| the time unit in which the windows are given. Default: Undefined
|
|
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 |
|
string | timeRangeSignalName = "" |
|
int | timeRangeSignalId |
|
TimeRangeTypes | timeRangeType = TIME_RANGE_CURRENT |
|
int | time_unit_range_sig = MedTime::Undefined |
| the time unit in which the range signal is given. (set correctly from Repository in learn and _generate)
|
|
vector< unsigned char > | lut |
| to be used when generating FTR_CATEGORY_SET_*
|
|
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 |
|
calculate drug coverage of prescription time in defined the time window.
a value between 0 to 1.