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?

Accepted Solution Solved
Reply
New Contributor
Posts: 3
Accepted Solution

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,

Ivan.


Accepted Solutions
Solution
‎09-29-2017 07:01 AM
Super Contributor
Posts: 337

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,

Miguel

View solution in original post


All Replies
Solution
‎09-29-2017 07:01 AM
Super Contributor
Posts: 337

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,

Miguel

New Contributor
Posts: 3

Re: Grid search to optimize parameters?

Posted in reply to M_Maldonado

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.

Ivan.

New Contributor
Posts: 2

Re: Grid search to optimize parameters?

Hi Miguel and Ivan,

I also wonder if there is an example code and if you could guide me to where to write the macro, is it done by adding a SAS code node to the diagram? Thanks.
Community Manager
Posts: 564

Re: Grid search to optimize parameters?

Posted in reply to camontanezp

Hi camontanezp,

 

Welcome to the SAS Data Mining and Machine Learning Community, thanks for your question! Since it's been quite a while since Miguel and Ivan's discussion, I recommend opening a New Message with your question and reference this thread in that post. 

 

Best,

Anna

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 825 views
  • 0 likes
  • 4 in conversation