Produce a time-series from an array.
 public static IMLDataSet generateTraining()
 {
     TemporalWindowArray temp = new TemporalWindowArray(WINDOW_SIZE, 1);
     temp.Analyze(normalizedSunspots);
     return temp.Process(normalizedSunspots);
 }
예제 #2
0
        /// <summary>
        /// Quickly an IMLDataset from a double array using the TemporalWindow array.
        /// </summary>
        /// <param name="array">The array.</param>
        /// <param name="inputsize">The inputsize.</param>
        /// <param name="outputsize">The outputsize.</param>
        /// <returns></returns>
        public static IMLDataSet QuickTrainingFromDoubleArray(double[] array, int inputsize, int outputsize)
        {
            TemporalWindowArray temp = new TemporalWindowArray(inputsize, outputsize);
            temp.Analyze(array);

            return temp.Process(array);
        }
예제 #3
0
 public static IMLDataSet generateTraining(double [] array)
 {
     TemporalWindowArray temp = new TemporalWindowArray(CONFIG.INPUT_WINDOW, 1);
     temp.Analyze(array);
     return temp.Process(array);
 }