Showing posts with label service. Show all posts
Showing posts with label service. Show all posts

Friday, March 9, 2012

Decision Trees

I am studying the behavior of 200.000 clients. With the use of decision trees I would like to know if my clients will abandon our service or not. I use a training set of 21.822 clients and I use a predict variable "aband" wich is a discrete variable and it can be 0 or 1. In my training set i have 21.597 cases in which aband is 0 and 255 cases in which aband is 1. Looking at the classification matrix obtained using as input table a testing set (unselected data) I can see that my decision tree doesn't recognize the cases in which aband is 1. Here is the Classification Matrix:

Counts for Dati Training on [Aband]
Predicted 0 (Actual) 1 (Actual)
0 21597 225
1 0 0

What should I do?

Chiara

For this kind of problem, where you have around 1% support, you are generally not going to get any outright predictions for "Aband". What you will get is a probability for each client that they will abandon. You can get this probability by using the clause "PredictProbability(Aband, 1)" in your prediction query. You should still see a positive lift using the lift chart to target the state "1", no? This chart sorts the results by probability of the target and counts the capture rate - i.e. the rate at which it finds actual abandonments. You can also find the "most likely" to abandon with a query such as

SELECT TOP 100 t.CustomerID, PredictProbability(Aband, 1)
FROM MyChurnModel
PREDICTION JOIN
...
ORDER BY PredictProbability(Aband, 1) DESC

My recommendation for this problem is to balance your data from the original 200,000 records so that you have a higher incidence of abandonment in the training case. There are instructions how to do this at http://www.sqlserverdatamining.com/DMCommunity/TipsNTricks/2615.aspx (you can dump the results into a table for mining - you don't have to use the training transform). The main idea is to sample off some rows at the natural distribution rate for testing, and then create a balanced sample for the training set.

|||

Thanks a lot!

Chiara

Friday, February 17, 2012

Debugger does not work after install xp service pack 2

Urgent. can't debug while we could before the "upgarde". WE waited a year
waiting for Microsoft to get all the bugs out. Well, guess the bugs aren't
out yet.
Anyone know how to solve problem. Using Windows 2000 Server, XP Pro
workstations and sQl Server 2000 with svpk 3a.
I get this message:"Server: Msg 504, Level 16, State 1, Procedure
sp_sdidebug, Line 1
[Microsoft][ODBC SQL Server Driver][SQL Server]Unable to connect to debugger
on FPFSPM49 (Error = 0x800706ba). Ensure that client-side components, such a
s
SQLDBREG.EXE, are installed and registered on EDW5840003M6Y. Debugging
disabled for connection 61.
"
I followed the instructions in Books online best as possible. However, "you
cannot register sqldbreg as they say to as it is not a dll or ocx"
It worked fine, before this install of xp sv pack 2.
--
Matthew MarkHi
There are many posts regarding this and there is a hotfix to it:
http://support.microsoft.com/kb/839280
This will also be included in SQL Server Pack 4.
John
"matthewmark" <matthewmark@.discussions.microsoft.com> wrote in message
news:64B85E46-5B86-4491-BCCD-6E9FA3A9F80C@.microsoft.com...
> Urgent. can't debug while we could before the "upgarde". WE waited a year
> waiting for Microsoft to get all the bugs out. Well, guess the bugs aren't
> out yet.
> Anyone know how to solve problem. Using Windows 2000 Server, XP Pro
> workstations and sQl Server 2000 with svpk 3a.
> I get this message:"Server: Msg 504, Level 16, State 1, Procedure
> sp_sdidebug, Line 1
> [Microsoft][ODBC SQL Server Driver][SQL Server]Unable to connect to
> debugger
> on FPFSPM49 (Error = 0x800706ba). Ensure that client-side components, such
> as
> SQLDBREG.EXE, are installed and registered on EDW5840003M6Y. Debugging
> disabled for connection 61.
> "
> I followed the instructions in Books online best as possible. However,
> "you
> cannot register sqldbreg as they say to as it is not a dll or ocx"
> It worked fine, before this install of xp sv pack 2.
> --
> Matthew Mark

Tuesday, February 14, 2012

deAttach database

hi

is there way by code to stop the sql server service and deattach a database and then restard the service

thanks

You can detach a database with code but SQL Server service must be running because if it is not running, you cannot access anything in SQL Server. Try the link below for details about attach and detach database in SQL Server. Hope this helps.

http://msdn2.microsoft.com/en-us/library/ms187858.aspx

|||thanks , but do u know how can i stop the sql server service|||

Yep here is some sample code from Microsoft to get you started. Hope this helps.

http://msdn2.microsoft.com/en-us/library/ms162139.aspx

|||thanx a lot

deAttach database

hi

is there way by code to stop the sql server service and deattach a database and then restard the service

thanks

You can detach a database with code but SQL Server service must be running because if it is not running, you cannot access anything in SQL Server. Try the link below for details about attach and detach database in SQL Server. Hope this helps.

http://msdn2.microsoft.com/en-us/library/ms187858.aspx

|||thanks , but do u know how can i stop the sql server service|||

Yep here is some sample code from Microsoft to get you started. Hope this helps.

http://msdn2.microsoft.com/en-us/library/ms162139.aspx

|||thanx a lot

deAttach database

hi

is there way by code to stop the sql server service and deattach a database and then restard the service

thanks

You can detach a database with code but SQL Server service must be running because if it is not running, you cannot access anything in SQL Server. Try the link below for details about attach and detach database in SQL Server. Hope this helps.

http://msdn2.microsoft.com/en-us/library/ms187858.aspx

|||thanks , but do u know how can i stop the sql server service|||

Yep here is some sample code from Microsoft to get you started. Hope this helps.

http://msdn2.microsoft.com/en-us/library/ms162139.aspx

|||thanx a lot