Filter löschen
Filter löschen

NeuralNET with Categorical Variables.

1 Ansicht (letzte 30 Tage)
Pappu Murthy
Pappu Murthy am 30 Apr. 2021
I am trying to train a NN with a set number of Input variables, say "n", and a set of outputs say "m". I have two categories 1 and 2 . I have the data available for category 1 and category 2 both 1000 in number. both have the same number of Inputs/variables and same number of output/variables. Ofcourse depending on which category it belongs to, the outputs vary. I want to train them together that is I have 2 categories (1, and 2) and "n" input variables, generating "m" outputs. How do I set up the network (feed forward net is what I am using). I have done separately two networks for each and they work fine. but I want t train them together. Please help. Thanks in advance.
This is what I am currently using for single NN:
net = feedforwardnet(hiddenLayerSize);
net = configure(net, x, t);
[net,tr] = train(net,x,t);
Where hiddenLayerSize is number of nodes in hidden layer. Currently I have about 13 inputs 10 Hidden nodes and 9 outputs for each network.

Antworten (0)

Kategorien

Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by