DL4J Neural Network model on multiple targets?

Hi All,
Does anyone know if there is a way to build a DL4J neural network model to train the same model on multiple targets at the same time?
I’ve got a classification problem with multiple outputs but using the DL4J Feedforward Learner the only option seems to be to specify a single target. Is there a way around this? It is important for me that the network learns features in the hidden layers based on all targets rather than building a separate model for each target…?

Thanks in advance for your help!

Mike

Hello @michazeidan,

unfortunately, that isn’t possible with our DL4J integration.
However, if you are willing to switch to our KNIME Deep Learning - Keras Integration, this kind of task is easy to accomplish, as you can have multiple output layers for a single network via the Keras Collect Layer node.

Cheers,
Adrian

1 Like

Hi Adrian,

Many thanks for your quick reply. I used DL4J because I’m new to deep learning and it had is seemed to be a good starting point since it had simple example models on the example server that were for general multivariate datasets that are not related to for images or text.

I’l have a go at replicating the Dl4J using Keras - thanks for pointing me in the right direction!

Thanks again,

Mike

1 Like

Hi Mike,

you are most welcome :slight_smile:
To get started with Keras on multivariate data, you might find Keras Autoencoder for Fraud Detection Deployment by Maarit informative.
In your case, the network will, of course, be different but the workflow showcases how to prepare your data for learning.

Cheers,
Adrian

Thanks Adrian!

I’ll have a look at the the workflow that you have suggested and will try and modify it to my needs and see how I get on…

Thanks again,

Mike