Produce a time-series from an array.
コード例 #1
0
 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
ファイル: marketpredict.cs プロジェクト: jongh0/MTree
 public static IMLDataSet generateTraining(double [] array)
 {
     TemporalWindowArray temp = new TemporalWindowArray(CONFIG.INPUT_WINDOW, 1);
     temp.Analyze(array);
     return temp.Process(array);
 }