Guest User

Untitled

a guest
Mar 18th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. static void main(String[] args) {
  2. // def net = createNetwork()
  3. def net = loadNetwork()
  4. INDArray features = Nd4j.create([1, 3, 1] as int[], (char) 'f')
  5. features.putScalar([0, 0, 0] as int[], 30807)
  6. features.putScalar([0, 1, 0] as int[], 726207)
  7. features.putScalar([0, 2, 0] as int[], 238.31)
  8.  
  9. def labels = Nd4j.create([1, 1, 1] as int[], (char) 'f')
  10. labels.putScalar([0, 0, 0] as int[], 238.31)
  11.  
  12. def dataSet = new DataSet(features, labels)
  13. normalizer.fitLabel(true)
  14. normalizer.fit(dataSet)
  15. normalizer.preProcess(dataSet)
  16.  
  17. def result = net.output(features)
  18. normalizer.revertLabels(result)
  19. println result
  20. }
Add Comment
Please, Sign In to add comment