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