BookmarkSubscribeRSS Feed
jlevine
Fluorite | Level 6

I am trying to use Enterprise miner 7.1 for over-sampling.  I understand the concept, but am having trouble implementing it.  How do I over-sample a dataset within the tool, and then have my Score node-created score code create the final predicted value based on the original target proportion.

In other words, my real data has a 2% success rate.  I over sample using the Sample node, so my training data has a 50% success rate.  I fit my model, and then use the score code to score.  I want EM_EVENTPROBABILITY to have an average of .02, not an average of .50.  What settings can I use to make that happen?

2 REPLIES 2
jmbnzhu
Calcite | Level 5

correct probabilities =

1/(1+(1/original fraction-1)/(1/oversampled fraction-1)*(1/scoring result-1));

eshtern
SAS Employee

In the EM click on the input data node. Then go to the properties panel and click the '....'  button next to the Decision option. Once the window pops up, go to the tab 'Prior Probabilities' and enter actual probabilities in the Adjusted Probabilities column. This will adjust the model results for oversampling in the modeling dataset.

Hope that helps.

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
  • 2 replies
  • 2058 views
  • 0 likes
  • 3 in conversation