1#ifndef __AVERAGE_PREDS_POST_PROCESSOR_H__
2#define __AVERAGE_PREDS_POST_PROCESSOR_H__
17 vector<FeatureProcessor *> before_processors;
18 vector<FeatureProcessor *> after_processors;
31 bool print_missing_cnt;
40 int init(map<string, string> &mapper);
46 void init_post_processor(
MedModel& model);
48 void dprint(
const string &pref)
const;
55 before_processors, after_processors, print_missing_cnt)
Logger.h - allowing logs with more control.
#define ADD_SERIALIZATION_FUNCS(...)
Definition SerializableObject.h:122
#define MEDSERIALIZE_SUPPORT(Type)
Definition SerializableObject.h:108
Post processor to resample input and apply predictor multiple time with aggregation.
Definition AggregatePredsPostProcessor.h:13
void Learn(const MedFeatures &train_mat)
Learns from predictor and train_matrix (PostProcessor API)
Definition AggregatePredsPostProcessor.cpp:219
string feature_processor_args
the feature processor type
Definition AggregatePredsPostProcessor.h:25
bool use_median
if true will fetch median instead of mean
Definition AggregatePredsPostProcessor.h:28
int resample_cnt
how much to resample
Definition AggregatePredsPostProcessor.h:29
void get_output_fields(vector< Effected_Field > &fields) const
List of fields that are being effected by this post_processor.
Definition AggregatePredsPostProcessor.cpp:62
int batch_size
how many predictions to process together
Definition AggregatePredsPostProcessor.h:30
int init(map< string, string > &mapper)
Global init for general args in all explainers.
Definition AggregatePredsPostProcessor.cpp:19
void get_input_fields(vector< Effected_Field > &fields) const
List of fields that are used by this post_processor.
Definition AggregatePredsPostProcessor.cpp:56
string feature_processor_type
the feature processor type. if used from model, reffer with prefix MODEL::s where s is feature proces...
Definition AggregatePredsPostProcessor.h:24
bool force_cancel_imputations
if true will force removal of imputations
Definition AggregatePredsPostProcessor.h:27
Definition FeatureProcess.h:51
A class for holding features data as a virtual matrix
Definition MedFeatures.h:47
A model = repCleaner + featureGenerator + featureProcessor + MedPredictor.
Definition MedModel.h:56
Base Interface for predictor.
Definition MedAlgo.h:78
An Abstract PostProcessor class.
Definition PostProcessor.h:39