Created
January 22, 2017 19:08
-
-
Save bartvollebregt/5868f37ba6ea64fc2bb81e903d873971 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.deeplearning4j.examples.recurrent.regression; | |
import org.nd4j.linalg.api.ndarray.INDArray; | |
import org.nd4j.linalg.factory.Nd4j; | |
import java.util.Arrays; | |
import java.util.List; | |
/** | |
* Created by bart on 22-1-17. | |
*/ | |
public class MinMaxTest { | |
public static void main(String[] args) throws Exception { | |
double[] tempArray = {8.60, 8.80, 8.80, 8.90, 8.90, 8.90, 8.90, 8.90, 8.90, 8.90, 8.90, 8.90, 8.90, 8.80, 8.80, 8.90, 8.70, 8.70, 8.70, 8.70, 8.70, 8.70, 8.70, 8.70, 8.80, 8.80, 8.80, 8.80, 8.70, 8.70, 8.70, 8.60, 8.50, 8.50, 8.40, 8.40, 8.30, 8.20, 8.20, 8.20, 8.10, 8.00, 8.00, 8.00, 7.90, 7.80, 7.90, 8.00, 7.90, 7.80, 7.80, 7.80, 7.80, 7.80, 7.80, 7.70, 7.70, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.70, 7.50, 7.60, 7.60, 7.70, 7.70, 7.90, 7.90, 8.10, 8.00, 8.10, 8.30, 8.40, 8.50, 8.70, 8.70, 8.80, 8.90, 8.90, 8.90, 8.90, 9.00, 8.90, 8.90, 8.90, 8.90, 8.70, 8.70, 8.70, 8.70, 8.70, 8.60, 8.60, 8.60, 8.50, 8.60, 8.50, 8.30, 8.20, 8.00, 7.90, 7.90, 7.90, 7.80, 7.90, 7.90, 7.80, 7.80, 7.80, 7.80, 7.80, 7.70, 7.70, 7.70, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.50, 7.50, 7.50, 7.50, 7.50, 7.50, 7.60, 7.60, 7.50, 7.50, 7.50, 7.50, 7.50, 7.40, 7.40, 7.40, 7.50, 7.40, 7.50, 7.60, 7.70, 7.70, 7.90, 8.20, 8.50, 8.70, 8.80, 8.90, 8.90, 8.80, 8.80, 8.90, 8.90, 8.90, 8.90, 8.90, 8.90, 8.90, 8.90, 8.90, 8.80, 8.70, 8.70, 8.60, 8.60, 8.60, 8.70, 8.70, 8.70, 8.70, 8.80, 8.70, 8.80, 8.80, 8.70, 8.60, 8.50, 8.50, 8.50, 8.30, 8.30, 8.30, 8.20, 8.10, 8.10, 8.20, 8.10, 8.00, 7.90, 7.80, 7.70, 7.70, 7.80, 7.70, 7.70, 7.70, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.50, 7.50, 7.50, 7.50, 7.50, 7.50, 7.50, 7.50, 7.60, 7.60, 7.70, 7.60, 7.70, 7.90, 8.00, 8.00, 8.10, 8.20, 8.40, 8.60, 8.70, 8.80, 8.90, 8.80, 8.90, 8.90, 8.90, 9.00, 9.00, 8.90, 9.00, 9.00, 8.80, 8.70, 8.80, 8.80, 8.80, 8.60, 8.70, 8.70, 8.60, 8.70, 8.50, 8.40, 8.20, 7.80, 7.70, 7.80, 8.20, 7.70, 8.00, 7.80, 7.80, 7.80, 7.70, 7.70, 7.60, 7.60, 7.60, 7.60, 7.50, 7.50, 7.50, 7.40, 7.40, 7.50, 7.40, 7.40, 7.50, 7.50, 7.40, 7.40, 7.40, 7.40, 7.40, 7.40, 7.40, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.20, 7.40, 7.60, 7.70, 8.00, 8.40, 8.50, 8.80, 8.80, 9.00, 8.90, 8.90, 8.90, 8.90, 8.90, 8.90, 8.90, 8.90, 8.80, 8.80, 8.80, 8.60, 8.50, 8.50, 8.50, 8.50, 8.60, 8.60, 8.60, 8.70, 8.50, 8.50, 8.70, 8.50, 8.40, 8.30, 8.20, 8.00, 8.00, 7.90, 7.90, 7.60, 7.50, 7.50, 7.60, 7.70, 7.50, 7.50, 7.50, 7.40, 7.40, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.20, 7.20, 7.20, 7.20, 7.30, 7.30, 7.20, 7.20, 7.20, 7.30, 7.20, 7.20, 7.20, 7.40, 7.70, 7.70, 7.90, 8.10, 8.30, 8.50, 8.40, 8.70, 8.70, 8.70, 8.80, 8.70, 8.70, 8.70, 8.30, 4.40, 4.10, 4.50, 4.60, 8.40, 8.40, 8.50, 8.30, 8.40, 8.20, 8.10, 8.20, 8.50, 8.20, 8.20, 8.10, 8.10, 7.90, 7.80, 7.90, 7.80, 7.80, 7.70, 7.80, 7.70, 7.70, 7.80, 7.50, 7.50, 7.50, 7.40, 7.40, 7.40, 7.40, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.20, 7.30, 7.20, 7.30, 7.20, 7.20, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.20, 7.30, 7.30, 7.50, 7.60, 7.80, 7.90, 8.10, 8.30, 8.50, 8.60, 8.70, 8.70, 8.70, 8.80, 8.80, 8.80, 8.80, 8.80, 8.70, 8.70, 8.70, 8.70, 8.60, 8.40, 8.50, 8.40, 8.40, 8.40, 8.30, 8.30, 8.30, 8.40, 8.30, 8.50, 8.50, 8.60, 8.50, 8.60, 8.60, 8.40, 8.40, 8.60, 8.50, 8.40, 8.30, 8.30, 8.30, 8.30, 8.20, 8.20, 8.30, 8.20, 8.10, 8.10, 7.90, 7.80, 7.70, 7.90, 7.60, 7.60, 7.60, 7.60, 7.60, 7.70, 7.60, 7.50, 7.60, 7.60, 7.50, 7.60, 7.60, 7.60, 7.60, 7.60, 7.50, 7.60, 7.70, 7.70, 7.80, 8.00, 8.00, 8.00, 8.00, 8.00, 8.20, 8.20, 8.40, 8.50, 8.60, 8.50, 8.50, 8.60, 8.60, 8.70, 8.70, 8.70, 8.70, 8.80, 8.70, 8.60, 8.60, 8.60, 8.50, 8.50, 8.50, 8.50, 8.50, 8.50, 8.50, 8.50, 8.40, 8.30, 8.20, 7.90, 7.80, 7.90, 7.90, 7.70, 7.70, 7.60, 7.60, 7.60, 7.60, 7.60, 7.50, 7.60, 7.50, 7.50, 7.50, 7.50, 7.40, 7.40, 7.40, 7.40, 7.40, 7.40, 7.30, 7.30, 7.40, 7.30, 7.50, 7.40, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.20, 7.20, 7.30, 7.30, 7.40, 7.50, 7.70, 8.00, 8.10, 8.30, 8.50, 8.50, 8.50, 8.60, 8.60, 8.70, 8.60, 8.50, 8.60, 8.60, 8.70, 8.60, 8.60, 8.70, 8.60, 8.50, 8.40, 8.30, 8.40, 8.40, 8.40, 8.40, 8.40, 8.50, 8.50, 8.50, 8.50, 8.40, 8.50, 8.40, 8.40, 8.50, 8.40, 8.30, 8.20, 8.20, 8.10, 8.00, 8.10, 8.10, 8.20, 7.90, 8.00, 7.80, 7.70, 7.60, 7.60, 7.50, 7.50, 7.50, 7.50, 7.40, 7.40, 7.40, 7.40, 7.40, 7.50, 7.40, 7.40, 7.40, 7.40, 7.50, 7.50, 7.40, 7.40, 7.40, 7.60, 7.60, 7.70, 7.80, 7.70, 7.90, 7.90, 7.90, 8.10, 8.20, 8.20, 8.20, 8.30, 8.40, 8.50, 8.50, 8.50, 8.60, 8.60, 8.50, 8.50, 8.60, 8.50, 8.40, 8.40, 8.40, 8.40, 8.40, 8.30, 8.40, 8.50, 8.50, 8.40, 8.50, 8.20, 8.20, 8.00, 7.90, 7.80, 7.80, 7.70, 7.80, 7.50, 7.50, 7.50, 7.40, 7.40, 7.40, 7.40, 7.40, 7.40, 7.40, 7.40, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.20, 7.20, 7.20, 7.20, 7.30, 7.30, 7.20, 7.20, 7.20, 7.20, 7.20, 7.20, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.20, 7.20, 7.20, 7.20, 7.30, 7.60, 7.70, 7.60, 7.90, 8.20, 8.10, 8.10, 8.10, 8.10, 8.10, 7.90, 7.90, 7.80, 8.00, 8.10, 8.10, 7.90, 8.10, 8.30, 8.30, 8.30, 8.10, 8.00, 7.90, 7.80, 7.70, 7.60, 7.40, 7.50, 7.50, 7.30, 7.30, 7.40, 7.60, 7.40, 7.70, 7.90, 7.70, 7.70, 7.50, 7.60, 7.60, 7.90, 7.80, 7.80, 7.60, 7.60, 7.60, 7.60, 7.50, 7.40, 7.40, 7.50, 7.40, 7.50, 7.50, 7.70, 7.70, 7.80, 7.70, 7.80, 7.90, 7.90, 8.00, 8.10, 8.20, 8.10, 8.30, 8.30, 8.30, 8.40, 8.50, 8.50, 8.60, 8.60, 8.50, 8.60, 8.50, 8.50, 8.50, 8.50, 8.50, 8.50, 8.50, 8.50, 8.40, 8.40, 8.40, 8.40, 8.40, 8.40, 8.40, 8.40, 8.30, 8.40, 8.30, 8.20, 8.20, 8.20, 8.20, 8.20, 8.20, 8.20, 8.20, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.20, 8.30, 8.30, 8.30, 8.30, 8.20, 8.20, 8.20, 8.20, 8.20, 8.20, 8.20, 8.20, 8.10, 8.20, 8.20, 8.20, 8.20, 8.10, 8.00, 7.90, 8.00, 7.90, 7.90, 7.90, 7.90, 7.80, 7.70, 7.70, 7.80, 7.90, 7.90, 8.00, 7.90, 7.80, 7.80, 7.90, 8.00, 8.10, 8.20, 8.10, 8.20, 8.20, 8.20, 8.30, 8.30, 8.30, 8.30, 8.30, 8.40, 8.40, 8.40, 8.40, 8.40, 8.40, 8.40, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.40, 8.40, 8.40, 8.40, 8.30, 8.30, 8.40, 8.30, 8.20, 8.30, 8.20, 8.20, 8.10, 8.10, 8.00, 8.00, 8.10, 7.90, 8.20, 8.10, 8.00, 8.00, 7.90, 7.80, 7.80, 7.80, 7.70, 7.70, 7.70, 7.70, 7.70, 7.60, 7.70, 7.70, 7.60, 7.60, 7.70, 7.70, 7.70, 7.60, 7.70, 7.70, 7.70, 7.60, 7.60, 7.70, 7.60, 7.70, 7.80, 7.70, 7.70, 7.90, 8.00, 8.20, 8.20, 8.30, 8.20, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.20, 8.10, 8.30, 8.30, 8.20, 8.10, 8.00, 8.00, 7.90, 7.90, 7.80, 7.80, 7.80, 7.80, 7.80, 7.80, 7.80, 7.80, 7.80, 7.70, 7.70, 7.70, 7.70, 7.70, 7.70, 7.70, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.50, 7.50, 7.50, 7.50, 7.50, 7.50, 7.50, 7.50, 7.40, 7.40, 7.40, 7.40, 7.40, 7.50, 7.60, 7.60, 7.80, 7.90, 8.10, 8.20, 8.40, 8.40, 8.40, 8.40, 8.40, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.20, 8.20, 8.20, 8.20, 8.20, 8.20, 8.20, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.40, 8.40, 8.40, 8.40, 8.40, 8.40, 8.30, 8.30, 8.20, 8.10, 8.10, 8.00, 8.00, 8.00, 8.10, 8.10, 8.20, 8.20, 8.10, 8.10, 8.00, 8.10, 8.30, 8.30, 8.20, 8.20, 8.20, 8.20, 8.20, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.30, 8.20, 8.20, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.20, 8.10, 8.20, 8.20, 8.20, 8.20, 8.20, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 7.90, 8.00, 7.90, 7.90, 7.90, 7.80, 7.90, 7.90, 7.90, 7.90, 7.80, 7.90, 7.90, 7.80, 7.80, 7.80, 7.90, 7.80, 7.80, 7.90, 7.80, 7.90, 8.00, 8.00, 8.10, 8.10, 8.10, 8.10, 8.20, 8.20, 8.20, 8.20, 8.20, 8.20, 8.20, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 7.90, 7.90, 7.90, 8.00, 8.00, 8.00, 8.00, 7.90, 7.90, 7.90, 7.90, 7.90, 7.90, 7.90, 7.90, 7.90, 7.90, 7.90, 7.90, 7.90, 7.90, 7.90, 7.80, 7.80, 7.70, 7.80, 7.70, 7.70, 7.70, 7.70, 7.70, 7.70, 7.70, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.50, 7.50, 7.50, 7.60, 7.60, 7.50, 7.50, 7.60, 7.60, 7.60, 7.60, 7.80, 7.80, 7.90, 7.90, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 7.90, 7.90, 7.90, 7.80, 7.80, 7.80, 7.60, 7.70, 7.70, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.60, 7.50, 7.50, 7.50, 7.40, 7.40, 7.40, 7.40, 7.40, 7.40, 7.40, 7.40, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.30, 7.20, 7.20, 7.20, 7.20, 7.20, 7.20, 7.20, 7.20, 7.10, 7.10, 7.10, 7.10, 7.10, 7.00, 7.00, 7.00, 7.00, 7.00, 7.10, 7.10, 7.20, 7.30, 7.80, 8.00, 8.20, 8.20, 8.10, 8.10, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 7.90, 7.90, 7.90, 7.70, 7.90, 7.90, 8.00, 7.90, 7.80, 7.60, 7.50, 7.20, 7.30, 7.10, 7.00, 7.00, 7.00, 7.00, 6.90, 6.90, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.10, 7.10, 7.00, 7.00, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.10, 7.20, 7.30, 7.50, 7.80, 8.00, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.00, 8.00, 7.90, 8.00, 7.90, 7.90, 8.00, 8.00, 7.90, 7.90, 7.80, 8.00, 7.80, 7.70, 7.70, 7.60, 7.50, 7.50, 7.40, 7.30, 7.30, 7.30, 7.30, 7.30, 7.20, 7.20, 7.20, 7.20, 7.20, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.10, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.10, 7.20, 7.40, 7.60, 7.70, 8.00, 8.10, 8.00, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.20, 8.10, 8.10, 8.10, 8.00, 7.90, 8.00, 8.00, 8.00, 7.90, 7.60, 8.00, 8.00, 7.90, 7.80, 7.80, 7.70, 7.40, 7.30, 7.20, 7.10, 7.00, 7.00, 7.00, 7.10, 7.10, 7.10, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 7.00, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.80, 6.90, 6.90, 6.90, 6.90, 6.90, 7.00, 7.10, 7.30, 7.60, 7.80, 8.00, 8.00, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 7.90, 8.00, 8.10, 8.10, 8.10, 8.00, 8.00, 7.90, 7.90, 8.00, 7.90, 7.90, 7.90, 8.00, 8.00, 7.90, 7.80, 7.90, 7.90, 7.50, 7.60, 7.50, 7.40, 7.40, 7.20, 7.20, 7.20, 7.20, 7.10, 7.20, 7.20, 7.20, 7.10, 7.00, 7.00, 7.10, 7.00, 7.10, 7.00, 6.90, 6.90, 7.00, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.80, 6.80, 6.80, 6.80, 6.80, 6.80, 6.90, 6.80, 6.80, 6.90, 7.10, 7.10, 7.20, 7.30, 7.50, 7.70, 7.80, 8.00, 8.00, 8.00, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.10, 8.00, 8.00, 7.90, 7.90, 7.90, 7.90, 7.90, 7.90, 7.80, 7.70, 7.80, 7.80, 7.80, 7.50, 7.40, 7.20, 7.00, 7.10, 7.00, 7.10, 7.00, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.80, 6.80, 6.80, 6.80, 6.80, 6.80, 6.80, 6.80, 6.80, 6.80, 6.80, 6.80, 6.80, 6.80, 6.70, 6.80, 6.80, 6.70, 6.80, 6.80, 6.70, 6.70, 6.80, 6.80, 6.80, 6.90, 7.00, 7.00, 7.00, 7.10, 7.20, 7.40, 7.60, 7.80, 7.90, 7.90, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 8.00, 7.90, 7.90, 7.80, 7.80, 7.70, 7.70, 7.80, 7.70, 7.70, 7.80, 7.90, 7.80, 7.90, 7.80, 7.80, 7.70, 7.70, 7.40, 7.40, 7.40, 7.30, 7.30, 7.30, 7.30, 7.30, 7.20, 7.20, 7.30, 7.20, 7.10, 7.10, 7.10, 7.10, 7.10, 7.00, 7.00, 7.00, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.90, 6.80, 6.90, 6.80, 6.80, 6.80, 6.90, 6.80, 6.80, 6.90, 6.90, 7.00, 7.10, 7.10, 7.20, 7.40, 7.50, 7.70, 7.80, 7.90, 7.90, 8.00, 7.90, 7.90, 8.00, 8.00, 8.00, 7.90, 7.90, 7.90, 7.90, 7.80, 7.70, 7.70, 7.70, 7.80, 7.80, 7.70, 7.70, 7.60, 7.60, 7.40, 7.30, 7.50, 7.20, 7.10, 7.10, 7.10, 7.00, 7.00, 7.00, 7.00, 7.00, 6.90, 6.90, 6.90, 6.90, 6.90, 6.80, 6.80, 6.80, 6.80, 6.80, 6.80, 6.70, 6.70, 6.70, 6.70, 6.70, 6.70, 6.70, 6.70, 6.70, 6.70, 6.70, 6.70, 6.70, 6.70, 6.60, 6.60, 6.70, 6.60, 6.60, 6.70, 6.80, 6.90, 7.00, 7.20, 7.30, 7.60, 7.70, 7.80, 7.80, 7.90, 7.90, 7.90, 7.90, 7.90, 7.80, 7.80, 7.80, 7.80, 7.70, 7.70, 7.70, 7.60, 7.60, 7.60, 7.60, 7.60, 7.70, 7.70, 7.80, 7.80, 7.70, 7.60, 7.70, 7.60, 7.40, 7.30, 7.20, 7.20, 7.30, 7.20, 7.20, 7.20, 7.20, 7.30, 7.00, 6.90, 6.90, 6.80, 6.80, 6.80, 6.80, 6.80, 6.80, 6.80, 6.80, 6.70, 6.70, 6.70, 6.70, 6.70, 6.70, 6.60, 6.60, 6.60, 6.60, 6.60, 6.60, 6.60, 6.50, 6.60, 6.60, 6.70, 7.00, 7.10, 6.90, 7.10, 7.20, 7.30, 7.40, 7.60, 7.80, 7.80, 7.90, 7.90, 7.90, 7.90, 7.90, 7.90, 7.90, 7.90, 7.90, 7.80, 7.80, 7.80, 7.80, 7.70, 7.70, 7.70, 7.70, 7.70, 7.70, 7.80, 7.80, 7.60, 7.60, 7.60, 7.50, 7.20, 7.10, 7.10, 7.00, 7.10, 6.90, 6.80, 6.80, 6.80, 6.70, 6.70, 6.70, 6.80, 6.70, 6.60, 6.60, 6.60, 6.60, 6.60, 6.60, 6.60, 6.60, 6.50, 6.60, 6.60, 6.50, 6.50, 6.50, 6.50, 6.40, 6.40, 6.40, 6.50, 6.50}; | |
INDArray tempINDArray = Nd4j.create(tempArray); | |
double[] passengerArray = {112.00, 118.00, 132.00, 129.00, 121.00, 135.00, 148.00, 148.00, 136.00, 119.00, 104.00, 118.00, 115.00, 126.00, 141.00, 135.00, 125.00, 149.00, 170.00, 170.00, 158.00, 133.00, 114.00, 140.00, 145.00, 150.00, 178.00, 163.00, 172.00, 178.00, 199.00, 199.00, 184.00, 162.00, 146.00, 166.00, 171.00, 180.00, 193.00, 181.00, 183.00, 218.00, 230.00, 242.00, 209.00, 191.00, 172.00, 194.00, 196.00, 196.00, 236.00, 235.00, 229.00, 243.00, 264.00, 272.00, 237.00, 211.00, 180.00, 201.00, 204.00, 188.00, 235.00, 227.00, 234.00, 264.00, 302.00, 293.00, 259.00, 229.00, 203.00, 229.00, 242.00, 233.00, 267.00, 269.00, 270.00, 315.00, 364.00, 347.00, 312.00, 274.00, 237.00, 278.00, 284.00, 277.00, 317.00, 313.00, 318.00, 374.00, 413.00, 405.00, 355.00, 306.00, 271.00, 306.00, 315.00, 301.00, 356.00, 348.00}; | |
INDArray passengerINDArray = Nd4j.create(passengerArray); | |
System.out.println("tempArray min 1: "); | |
System.out.println(tempINDArray.min(new int[]{0})); | |
System.out.println("Passengerarray min 1: "); | |
System.out.println(passengerINDArray.min(new int[]{0})); | |
System.out.println("tempArray min 2: "); | |
System.out.println(tempINDArray.min(new int[]{1})); | |
System.out.println("Passengerarray min 2: "); | |
System.out.println(passengerINDArray.min(new int[]{1})); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment