custom_config.py 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. from modules.config.cnn_config import *
  2. import os
  3. # store all variables from cnn config
  4. context_vars = vars()
  5. # Custom config used for redefined config variables if necessary
  6. # folders
  7. output_data_folder = 'data'
  8. output_data_generated = os.path.join(output_data_folder, 'generated')
  9. output_datasets = os.path.join(output_data_folder, 'datasets')
  10. output_zones_learned = os.path.join(output_data_folder, 'learned_zones')
  11. output_models = os.path.join(output_data_folder, 'saved_models')
  12. output_results_folder = os.path.join(output_data_folder, 'results')
  13. ## noisy_folder = 'noisy'
  14. ## not_noisy_folder = 'notNoisy'
  15. backup_model_folder = os.path.join(output_data_folder, 'models_backup')
  16. # file or extensions
  17. perf_prediction_model_path = 'predictions_models_results.csv'
  18. results_filename = 'results.csv'
  19. ## post_image_name_separator = '___'
  20. # variables
  21. perf_train_header_file = "model_name;global_train_size;global_test_size;filtered_train_size;filtered_test_size;f1_train;f1_test;recall_train;recall_test;presicion_train;precision_test;acc_train;acc_test;roc_auc_train;roc_auc_test;\n"
  22. perf_prediction_header_file = "data;data_size;model_name;accucary;f1;recall;precision;roc;\n"
  23. features_choices_labels = ['static', 'svd_reconstruction', 'fast_ica_reconstruction', 'ipca_reconstruction', 'min_diff_filter', 'sobel_based_filter','nl_mean_noise_mask']
  24. # parameters
  25. sub_image_size = (200, 200)
  26. keras_epochs = 30
  27. ## keras_batch = 32
  28. ## val_dataset_size = 0.2
  29. keras_img_size = (200, 200)