Building models with SAS Enterprise Miner, SAS Factory Miner, SAS Visual Data Mining and Machine Learning or just with programming

Grid search to optimize parameters?

New Contributor
Posts: 3

Grid search to optimize parameters?

Hi, how are you?

I've been starting to use SAS Enterprise Miner 7.1 H1 and I was wondering if there's any efficent way of programming arbitrary parameters' searches.

For example:

- When tuning K for K-NN, I manually created 10 nodes with 10 different K values.

- When tuning Hidden Units for a Neural Network, I had to do the same thing.

When you want to get greedy with your search space, programming it this way becomes quite tedious.

Is there a way to use a single encapsulating node and easily set different parameters combinations to be tested, instead of having to manually set different model nodes?

Thanks a lot!

Best regards,


Super Contributor
Posts: 336

Re: Grid search to optimize parameters?

Hi Ivan,

This is supported for neural networks using the AutoNeural node.

For other models the only alternative that comes to mind is to use macro programming on base SAS to do multiple calls of a procedure with different parameters.

I hope this helps,


New Contributor
Posts: 3

Re: Grid search to optimize parameters?

Thank you Miguel, I'm already using AutoNeural so I'll look into macro programming.

If anyone has any code samples to use as reference, I would appreciate those very much, thank you.


Ask a Question
Discussion stats
  • 2 replies
  • 2 in conversation