Regression instead of a classification

There are a few examples on how to set up the model for regression in the examples repository:
https://github.com/eclipse/deeplearning4j-examples/tree/master/dl4j-examples/src/main/java/org/deeplearning4j/examples/feedforward/regression

Given how you’ve stated your original question, I understood it to be about loading the data for regression. This is a separate step from setting up your model for it.