BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Stewartli
Fluorite | Level 6

Hi guys,

My dataset contains 113 variables. The half of it was selected to develop the neural network. It does not make sense if you look at the graph (but only one hidden layer was included). Thereafter, auto-tuning (SAS VDMML) was used, the neural network became a little crazy (4 hidden layers were included). Can anybody tell me what is wrong with it? Thank you very much.

 

Regards,

Stewart

1.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
DougWielenga
SAS Employee

It is not clear that anything is wrong.   A single hidden layer neural  network is a universal approximator which means that a single hidden layer neural network can model any surface within a specified amount of error given a sufficient number hidden units.  Moving to multiple hidden layers won't necessarily improve the model but just changes the architecture of the network so that there might be fewer hidden units needed at each layer.  Neither is guaranteed to produce a better-fitting model.  You do need to be careful to avoid overfitting but you can overfit a single hidden layer network as easily as a network with more hidden layers.  

 

Hope this helps!
Doug

View solution in original post

4 REPLIES 4
DougWielenga
SAS Employee

It is not clear that anything is wrong.   A single hidden layer neural  network is a universal approximator which means that a single hidden layer neural network can model any surface within a specified amount of error given a sufficient number hidden units.  Moving to multiple hidden layers won't necessarily improve the model but just changes the architecture of the network so that there might be fewer hidden units needed at each layer.  Neither is guaranteed to produce a better-fitting model.  You do need to be careful to avoid overfitting but you can overfit a single hidden layer network as easily as a network with more hidden layers.  

 

Hope this helps!
Doug

Stewartli
Fluorite | Level 6

Hi Doug,

Thank you very much. It does help. 

 

Stewart

BrettWujek
SAS Employee

As Doug states, it's not clear that there is necessarily anything wrong here.  But yeah, the final model from the autotuning process is definitely more (overly) complex. I strongly suggest that you try autotuning your model with code in SAS Studio so that you can see much more detail and have control over the ranges of the hyperparameters (e.g., if you just wanted a single hidden layer you can tell it to not autotune that), and you can see the top 10 models from the process so that you can perform tradeoffs.

 

For an example of using the SAS Studio Neural Network task to autotune a neural network, see this video. The first part is just all about the process...at the 5:25 mark I start showing how to do it with the task.

 

 


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

Stewartli
Fluorite | Level 6

Hi Brett, 

Thank you very much for that. 

Yes, the video did inspire me to consider auto-tuning in my research in the first place. 

 

Regards, 

Stewart

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1181 views
  • 1 like
  • 3 in conversation