Showing posts with label reading. Show all posts
Showing posts with label reading. Show all posts

Monday, March 26, 2012

I can't understand the meaning of a prediction query

Dear friends,
I'm reading Wiley's Data mining with SQL Server 2005... There are MANY things I can't understand about MovieClick example (Chapter 3).
I hope someone is going to help me with this troubles...

WARNING (1): I'm a dummy both with sql server and data mining.
WARNING (2): My English is not good at all.

Just two questions for now:

1) When I create the model to predict the number of bedrooms for homeowners, the book says to check BEDROOMS as Predictable... question: is it also an INPUT for the model, or PREDICTABLE only?

2) I'd like to keep this model (number of bedrooms.......) and make a prediction query.

- Query builder
- select case table -> Homeowners
- Drag the Customer ID column from the Homeowners table and drop it on the grid
- Drag the BEDROOMS column from the mining model and drop it on the grid.
- On the last row: Source=PredictionFunction, Field=PredictProbability
- Drag the BEDROOMS column from the mining model and drop it into Criteria/Argument
- Add (i.e.) 'Two or Three' to the field Criteria/Argument

I execute the query and I obtain many rows in a table with the following colums: CustomerID, BEDROOMS and Expression: WHAT DOES THIS MEAN?
WHICH INFO DO I GET FROM THOSE NUMBERS? WHAT CAN I LEARN FROM THEM?

Thanx a lot in advance, please help me!

1: It won't actually matter if you make it INPUT as well. When you mark something as PREDICTABLE, it generally means that the algorithm will try to learn about the data in that column. When you mark it as INPUT, it generally means that the algorithm will consider this column as information about the predictable columns. For trees, for example, the algorithm will create a tree for each predictable column, and the trees can have splits on the input columns. If you have a column that is marked INPUT and PREDICTABLE, in general, it only matters if you have more than one PREDICTABLE, since the columns don't act as inputs for themselves, for example, the tree for # of bedrooms isn't going to have a split on # of bedrooms, but if you also make Home Ownership predictable, than # of bedrooms could be a condition in the tree for Home Ownership. (the one exception is for clustering, but that's a longer explanation).

2: What do the numbers mean? The first column is just the customer ID from the input - this could also be the customer name, for example. The second column is the # of bedrooms predicted by the algorithm - that is, the count of bedrooms that has the highest probability of all options given the input. The last column is the probability that the # of bedrooms would be 'Two or Three'.

What can you use this for? Take for example you were building a model to predict whether people would buy a product. You would want to predict which people would buy or not buy. In addition, you would probably want to contact those people with the highest probability of buying - therefore you need to use the PredictProbability function with a specified value. As you learn to use the product more, you will see that you can use the Profit Chart to determine the maximum profit for a marketing campaign using a Mining Model. The chart will give you a probability threshold. You want to use this threshold in a DMX query to select all customers who have a probability higher than that threshold in order to achieve maximum profit.

Hope this helps

-Jamie

Wednesday, March 7, 2012

Hyperthreading SQL Server 7 - HELP!

Could you clarify the following.
We are looking to buy a quad xeon box (ie 8 virtual processors). From
reading MS documentation it looks like W2K Server won't cut it - we
will need to move to W2K Advanced Server, correct?
Secondly, will Sql Server 7 support 8 virtual processors under such a
scenario?
Thirdly, based on our proposed box 4 x 2.0 GHz Xeon + 2 Gb RAM - for
more performance would you increase the processor speed (eg to 2.5GHz)
or add more RAM (eg to 4 Gb, or more)?
Many Thanks,
StewartI think win2k server ONLY supports 2 physical procs, so you'll neet Advanced
Server...I think you'll also need sql 7 Enterprise to support 4 procs...
Please make sure SQL 7 Enterprise will run on W2k Advanced Server... ( I
think it will, but be safe and double check..)
"Stewart" <windsurfin_stew@.yahoo.com.au> wrote in message
news:9373ee00.0308112138.1cb2f916@.posting.google.com...
> Could you clarify the following.
> We are looking to buy a quad xeon box (ie 8 virtual processors). From
> reading MS documentation it looks like W2K Server won't cut it - we
> will need to move to W2K Advanced Server, correct?
> Secondly, will Sql Server 7 support 8 virtual processors under such a
> scenario?
> Thirdly, based on our proposed box 4 x 2.0 GHz Xeon + 2 Gb RAM - for
> more performance would you increase the processor speed (eg to 2.5GHz)
> or add more RAM (eg to 4 Gb, or more)?
> Many Thanks,
> Stewart|||Win 2K server supports 4 Procs.
Here is a good doc on Microsoft , Win2K and hyperthreading
http://www.microsoft.com/windows2000/docs/hyperthreading.doc
--
--
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"Wayne Snyder" <wsnyder@.computeredservices.com> wrote in message
news:ue9wXLLYDHA.1640@.TK2MSFTNGP10.phx.gbl...
> I think win2k server ONLY supports 2 physical procs, so you'll neet
Advanced
> Server...I think you'll also need sql 7 Enterprise to support 4 procs...
> Please make sure SQL 7 Enterprise will run on W2k Advanced Server... ( I
> think it will, but be safe and double check..)
> "Stewart" <windsurfin_stew@.yahoo.com.au> wrote in message
> news:9373ee00.0308112138.1cb2f916@.posting.google.com...
> > Could you clarify the following.
> >
> > We are looking to buy a quad xeon box (ie 8 virtual processors). From
> > reading MS documentation it looks like W2K Server won't cut it - we
> > will need to move to W2K Advanced Server, correct?
> >
> > Secondly, will Sql Server 7 support 8 virtual processors under such a
> > scenario?
> >
> > Thirdly, based on our proposed box 4 x 2.0 GHz Xeon + 2 Gb RAM - for
> > more performance would you increase the processor speed (eg to 2.5GHz)
> > or add more RAM (eg to 4 Gb, or more)?
> >
> > Many Thanks,
> >
> > Stewart
>|||As for your performance question. You will definitely buy more power by
adding memory instead of CPU here. Go with 4GB RAM.
"Allan Mitchell" <allan@.no-spam.sqldts.com> wrote in message
news:e3GbgjLYDHA.1280@.tk2msftngp13.phx.gbl...
> Win 2K server supports 4 Procs.
> Here is a good doc on Microsoft , Win2K and hyperthreading
> http://www.microsoft.com/windows2000/docs/hyperthreading.doc
> --
> --
> Allan Mitchell (Microsoft SQL Server MVP)
> MCSE,MCDBA
> www.SQLDTS.com
> I support PASS - the definitive, global community
> for SQL Server professionals - http://www.sqlpass.org
>
> "Wayne Snyder" <wsnyder@.computeredservices.com> wrote in message
> news:ue9wXLLYDHA.1640@.TK2MSFTNGP10.phx.gbl...
> > I think win2k server ONLY supports 2 physical procs, so you'll neet
> Advanced
> > Server...I think you'll also need sql 7 Enterprise to support 4
procs...
> > Please make sure SQL 7 Enterprise will run on W2k Advanced Server... ( I
> > think it will, but be safe and double check..)
> > "Stewart" <windsurfin_stew@.yahoo.com.au> wrote in message
> > news:9373ee00.0308112138.1cb2f916@.posting.google.com...
> > > Could you clarify the following.
> > >
> > > We are looking to buy a quad xeon box (ie 8 virtual processors). From
> > > reading MS documentation it looks like W2K Server won't cut it - we
> > > will need to move to W2K Advanced Server, correct?
> > >
> > > Secondly, will Sql Server 7 support 8 virtual processors under such a
> > > scenario?
> > >
> > > Thirdly, based on our proposed box 4 x 2.0 GHz Xeon + 2 Gb RAM - for
> > > more performance would you increase the processor speed (eg to 2.5GHz)
> > > or add more RAM (eg to 4 Gb, or more)?
> > >
> > > Many Thanks,
> > >
> > > Stewart
> >
> >
>|||SQL Server 7.0 Standard Edition will only support 4 processors, and it can't
tell the difference between physical and logical processors. So, if you
want it to use all 8 logical processors on your proposed configuration
you'll want to purchase Enterprise Edition. In addition, 2GB of memory is
marginal for this sized configuration if you are really worried about
maximum performance. So you'll want more memory and Enterprise Edition to
support that additional memory. With 7.0 the best you can do for memory is
the /3GB switch. So the maximum useful memory on the system is going to be
4GB.
An alternative is to stick with Standard Edition and just have it use one
logical processor on each physical processor. Background tasks (Windows
processes, SQL Agent, etc.) will make some use of the additional logical
processors. Keep in mind that the additional logical processors don't
double system performance anyway, most of the data I've heard suggests
they'll give you about a 20% boost. And if you make heavy use of parallel
query then they might actually lead to some pathological conditions that
degrade performance. Finally, with Standard Edition you'd still be limited
to 2GB of memory, which in the long run is your most likely bottleneck.
--
Hal Berenson, SQL Server MVP
True Mountain Group LLC
"Stewart" <windsurfin_stew@.yahoo.com.au> wrote in message
news:9373ee00.0308112138.1cb2f916@.posting.google.com...
> Could you clarify the following.
> We are looking to buy a quad xeon box (ie 8 virtual processors). From
> reading MS documentation it looks like W2K Server won't cut it - we
> will need to move to W2K Advanced Server, correct?
> Secondly, will Sql Server 7 support 8 virtual processors under such a
> scenario?
> Thirdly, based on our proposed box 4 x 2.0 GHz Xeon + 2 Gb RAM - for
> more performance would you increase the processor speed (eg to 2.5GHz)
> or add more RAM (eg to 4 Gb, or more)?
> Many Thanks,
> Stewart