@Test public void testComputeYearsToTrain() { String[] args = { "2010", "2011", "2012", "2013,2014" }; Integer[] expectedYearsToTrain = { 2010, 2011, 2012 }; Integer[] actualYearsToTrain = MlpNetworkTrainer.computeYearsToTrain(args); assertArrayEquals(expectedYearsToTrain, actualYearsToTrain); }
protected static Integer[] computeYearsToTrain(String[] args) { Integer[] ret = new Integer[args.length - 1]; for (int aa = 0; aa < args.length - 1; aa++) { Integer year = Integer.valueOf(args[aa]); NetworkUtils.validateYear(year); ret[aa] = year; } return ret; }
MlpNetworkTrainer implements LearningEventListener { protected static Integer[] computeYearsToTrain(String[] args) { Integer[] ret = new Integer[args.length - 1]; for (int aa = 0; aa < args.length - 1; aa++) { Integer year = Integer.valueOf(args[aa]); NetworkUtils.validateYear(year); ret[aa] = year; } return ret; } }
MlpNetworkTrainer implements LearningEventListener { protected static Integer[] computeYearsToTrain(String[] args) { Integer[] ret = new Integer[args.length - 1]; for (int aa = 0; aa < args.length - 1; aa++) { Integer year = Integer.valueOf(args[aa]); NetworkUtils.validateYear(year); ret[aa] = year; } return ret; } MlpNetworkTrainer(ApplicationContext applicationContext); }
MlpNetworkTrainer implements LearningEventListener { protected static Integer[] computeYearsToTrain(String[] args) { Integer[] ret = new Integer[args.length - 1]; for (int aa = 0; aa < args.length - 1; aa++) { Integer year = Integer.valueOf(args[aa]); NetworkUtils.validateYear(year); ret[aa] = year; } return ret; } MlpNetworkTrainer(ApplicationContext applicationContext); SeasonData pullSeasonData(Integer year, String teamName); List<TournamentResult> pullTournamentResults(Integer year); SeasonAnalytics pullSeasonAnalytics(Integer year); static void main(String[] args); void go(String[] args); @SuppressWarnings("unchecked") @Override void handleLearningEvent(LearningEvent event); }
MlpNetworkTrainer implements LearningEventListener { protected static Integer[] computeYearsToTrain(String[] args) { Integer[] ret = new Integer[args.length - 1]; for (int aa = 0; aa < args.length - 1; aa++) { Integer year = Integer.valueOf(args[aa]); NetworkUtils.validateYear(year); ret[aa] = year; } return ret; } MlpNetworkTrainer(ApplicationContext applicationContext); SeasonData pullSeasonData(Integer year, String teamName); List<TournamentResult> pullTournamentResults(Integer year); SeasonAnalytics pullSeasonAnalytics(Integer year); static void main(String[] args); void go(String[] args); @SuppressWarnings("unchecked") @Override void handleLearningEvent(LearningEvent event); static final TransferFunctionType NEURON_PROPERTY_TRANSFER_FUNCTION; }