public KerasModelBuilder trainingJsonInputStream ( InputStream trainingJsonInputStream ) throws IOException { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream ( ) ; IOUtils . copy ( trainingJsonInputStream , byteArrayOutputStream ) ; this . trainingJson = new String ( byteArrayOutputStream . toByteArray ( ) ) ; return this ; }
Provide training configuration as file input stream from JSON