37 using namespace shogun;
55 SG_INFO(
"PRUNEVARSUBMEAN created (%p), divide_by_std %d", preproc, divide_by_std)
57 SG_ERROR(
"Could not create preproc PRUNEVARSUBMEAN, divide_by_std %d", divide_by_std)
68 SG_INFO(
"PCA created (%p), do_whitening %i threshold %e", preproc, do_whitening, threshold)
70 SG_ERROR(
"Could not create preproc PCA, do_whitening %i threshold %e", do_whitening, threshold)
74 SG_ERROR(
"Could not create preproc PCA - lapack not available at compile time\n")
96 SG_ERROR(
"Unknown Preprocessor type %d\n", type)
100 SG_INFO(
"Preproc of type %d created (%p).\n", type, preproc)
102 SG_ERROR(
"Could not create preproc of type %d.\n", type)
126 return (preproc!=NULL);
133 if (strncmp(target,
"TRAIN", 5)==0)
135 CFeatures* f=
ui->ui_features->get_train_features();
137 SG_ERROR(
"No train features assigned!\n")
143 ui->ui_features->invalidate_train();
146 else if (strncmp(target,
"TEST", 4)==0)
148 CFeatures* f_test=
ui->ui_features->get_test_features();
150 SG_ERROR(
"No test features assigned!\n")
152 CFeatures* f_train=
ui->ui_features->get_train_features();
154 SG_ERROR(
"No train features assigned!\n")
159 if (fclass_train==fclass_test)
170 SG_ERROR(
"One of the combined features has no sub-features ?!\n")
173 SG_INFO(
"BEGIN PREPROCESSING COMBINED FEATURES (%d sub-featureobjects).\n", num_combined)
175 for (; f_idx<num_combined; f_idx++)
180 if (!(te_feat && tr_feat))
190 ASSERT(f_idx==num_combined)
192 SG_INFO(
"END PREPROCESSING COMBINED FEATURES\n")
195 SG_ERROR(
"combined features not compatible\n")
200 ui->ui_features->invalidate_test();
205 SG_ERROR(
"Features not compatible.\n")
208 SG_ERROR(
"Features not correctly assigned!\n")
229 SG_ERROR(
"more preprocessors attached to test features than to train features\n")
238 preproc->
init(trainfeat);
252 preproc->
init(trainfeat);
261 preproc->
init(trainfeat);
272 SG_ERROR(
"no features for preprocessing available!\n")
319 SG_ERROR(
"Combined feature objects cannot be preprocessed. Only its sub-feature objects!\n")