Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Melodic
morphemic-preprocessor
Commits
43a12dad
Commit
43a12dad
authored
Mar 17, 2022
by
Andreas Tsagkaropoulos
Browse files
Correctly specify the location of the configuration file
Correctly parse `testing_prediction_functionality` property
parent
8fc0b2e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
morphemic-forecasting-exponentialsmoothing/src/r_predictors/forecasting_real_workload.R
View file @
43a12dad
...
...
@@ -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
)
...
...
morphemic-forecasting-exponentialsmoothing/src/runtime/utilities/Utilities.py
View file @
43a12dad
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment