REM THis is an implementation of naive Bayes for Regression by Jose A. Fernandes and Aritz Pérez for Azti-Tecnalia under supervision of Xabier Irigoien, Jose A. Lozano e Iñaki Inza.
REM This implementation uses Elvira and Weka and it is based on the kernels implementation of article: A. Pérez, P. Larrañaga, I. Inza. Bayesian classifiers based on kernel density estimation: Flexible classifiers, Int. J. Approx. Reason. 50 (2) (2009) 341--362.
REM The naive Bayes for Regression detailed explanation see article: E. Frank, L. Trigg, G. Holmes, I. Witten, Naive Bayes for regression, Machine Learning 41 (1) (2000) 5--15.
REM This implementation was done for the article: (2011) The potential use of a Gadget model to predict stock responses to climate change in combination with Bayesian Networks: the case of the Bay of Biscay anchovy. Andonegi E., Fernandes J.A., Quincoces I., Uriarte A., Pérez A., Howell D., Stefansson G. ICES J. Mar. Sci. 68(6): 1257-1269.

REM ARMregressionNB.csv has the training data
REM ARMregressionNBpredict.csv has the data tu evaluate
REM Both files must have in the first column the year and in last column the serie to predict, in between it can have any number of predictors

REM This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
REM This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

java -Xmx1300M -classpath .;weka.jar;JamaAritzV1.jar;KernelElviraAritzForRegression.jar;RecruitmentPredictionNBRegression.jar MainProgram -verbose -CalculateTableOfFits -Classifier 8 -LearningFile ARMregressionNB.csv

pause