tweaked PCANode training to take variable input values