===================================================
README
===================================================
* Dependencies:

- Java 1.8
- Postgres 9.3
===================================================
* Execution steps

1) Import provided datasets using the \i command from pgadmin console;
2) Modify "database.cfg" including connection settings to db (by default the system use domestic settings);
3) Execute the desired learning setting specifying the following parameters (specify -init 1 for the first execution):
_____________________________________________________
 -init     : [0,1]              						(default: 0)
 -run      : [1..10]            						(default: 1)
 -dataset  : [1: PV Italy | 2: PV NREL]  				(default: 1)
 -criteria : [1: MSE]
             [2: MEE    | 4: MCC ]
             [6: MEE SA | 7: MCC SA]
             [8: MEEF   | 9: MEEF SA]
_____________________________________________________
Options for criteria 2-9:
 -parzendim   : size of the parzen window 		(1000,2000,4000 - default: 2000)
 -lambda      : weight of the current iteration (0.04,0.08,0.12 - default: 0.08)
 -kernelsize  : size of the kernel 				(0.4, 0.5, 0.6  - default: 0.5)
 -window:    [0: Landmark  | 1: Limit] 			(Specify 1)

_____________________________________________________

Execute "java -jar energy_prediction.jar" to show all available parameters.

Errors and predictions will be saved in the tables "error_nn_daily_plant" and "predictions_nn".

Neural networks used for testing will be saved in /out subfolder.

Run examples:

java -jar energy-prediction.jar -dataset 1 -run 1 -criteria 8 -window 1 -parzendim 1000 -lambda 0.12 -kernelsize 0.6;
java -jar energy-prediction.jar -dataset 1 -run 1 -criteria 8 -window 1 -parzendim 2000 -lambda 0.12 -kernelsize 0.6;
java -jar energy-prediction.jar -dataset 1 -run 1 -criteria 8 -window 1 -parzendim 4000 -lambda 0.12 -kernelsize 0.6;
_____________________________________________________
Grid search functionality

Automated parameters' tuning procedure, which identifies the following best configurations for lambda and kernel size: 

java -jar energy_prediction.jar -dataset 1 -run 1 -criteria 7 -window 1 -parzendim 4000 -threadnum 1 -grid




