Commit 43a12dad authored by Andreas Tsagkaropoulos's avatar Andreas Tsagkaropoulos
Browse files

Correctly specify the location of the configuration file

Correctly parse `testing_prediction_functionality` property
parent 8fc0b2e9
......@@ -32,7 +32,8 @@ get_time_value <- function(time_object){
####Time the execution of the prediction
start_time <- proc.time()
configuration_properties <- read.properties(".\\prediction_configuration-windows.properties")#configuration_properties <- read.properties(paste(getwd(),"/src/r_predictors/prediction_configuration-windows.properties",sep=''))
#configuration_properties <- read.properties(".\\prediction_configuration-windows.properties")
configuration_properties <- read.properties(paste(getwd(),"/prediction_configuration.properties",sep=''))
realtime_mode <- as.logical(configuration_properties$realtime_mode) #whether or not we should use all datapoints available (True value), or we are only partially using the available dataset (False value) e.g to test the prediction method performance
try_to_optimize_parameters <- as.logical(configuration_properties$try_to_optimize_parameters)
......
......@@ -13,7 +13,7 @@ class Utilities:
State.dataset_file_name = State.configuration_details.get("input_data_file").data
State.number_of_days_to_use_data_from = int(State.configuration_details.get("number_of_days_to_use_data_from").data)
State.prediction_processing_time_safety_margin_seconds = int(State.configuration_details.get("prediction_processing_time_safety_margin_seconds").data)
State.testing_prediction_functionality = bool(State.configuration_details.get("testing_prediction_functionality").data)
State.testing_prediction_functionality = State.configuration_details.get("testing_prediction_functionality").data.lower() == "true"
State.path_to_datasets = State.configuration_details.get("path_to_datasets").data
State.broker_address = State.configuration_details.get("broker_address").data
State.broker_port = int(State.configuration_details.get("broker_port").data)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment