Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Scripting data mining

 
   Database Help (Home) -> Datamining RSS
Next:  4 Queries about DB clustering  
Author Message
user2601

External


Since: Jan 04, 2005
Posts: 12



(Msg. 1) Posted: Thu Feb 10, 2005 12:25 pm
Post subject: Scripting data mining
Archived from groups: microsoft>public>sqlserver>datamining (more info?)

Hi,

Can I execute from code refreshing of data and full processing of Mining
Model ?
And also execute prediction query on this mining model with client input ?

Thank you

 >> Stay informed about: Scripting data mining 
Back to top
Login to vote
Bogdan Crivat MSFT

External


Since: Feb 20, 2004
Posts: 12



(Msg. 2) Posted: Thu Feb 10, 2005 3:43 pm
Post subject: Re: Scripting data mining [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I assume you are using Data Mining coming with Microsoft Analysis Services.
Yes, you can do that. Open an OLEDB (or ADO, or ADO.Net) connection to the
Analysis Services server.
On that connection, you can execute INSERT INTO to fully reprocess a data
mining model
A singleton prediction query is most likely the best solution for predicting
based on client input:

Something like:

SELECT [College Plans] -- the column to predict
FROM [CPModel] -- the model to predict from
NATURAL PREDICTION JOIN
( SELECT 50000 AS [Parent Income], -- client input here
120 AS [IQ] -- client input here
) AS T

--
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. It is for newsgroup
purposes only.

thanks,
bogdan

"B.J." <BJ DeleteThis @discussions.microsoft.com> wrote in message
news:9E901559-13E5-4B72-BFA6-6F3CA98E92DA@microsoft.com...
 > Hi,
 >
 > Can I execute from code refreshing of data and full processing of Mining
 > Model ?
 > And also execute prediction query on this mining model with client input ?
 >
 > Thank you<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Scripting data mining 
Back to top
Login to vote
user2601

External


Since: Jan 04, 2005
Posts: 12



(Msg. 3) Posted: Fri Feb 11, 2005 12:01 pm
Post subject: Re: Scripting data mining [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you. I have one additional question (becuase I never worked with MS SQL
Analysis server, only with MS SQL 2000 Database server).
I want to code it in C#.NET. Should I used classical SqlConnection and
SqlCommand objects (as when connecting relational database) also for
connecting to analysis server ?
And can I somehow run this query in Query Analyzer or some other tool
respectively in Visual Studio .NET for quick testing ?

Yet one more thanks.

"Bogdan Crivat [MSFT]" wrote:

 > I assume you are using Data Mining coming with Microsoft Analysis Services.
 > Yes, you can do that. Open an OLEDB (or ADO, or ADO.Net) connection to the
 > Analysis Services server.
 > On that connection, you can execute INSERT INTO to fully reprocess a data
 > mining model
 > A singleton prediction query is most likely the best solution for predicting
 > based on client input:
 >
 > Something like:
 >
 > SELECT [College Plans] -- the column to predict
 > FROM [CPModel] -- the model to predict from
 > NATURAL PREDICTION JOIN
 > ( SELECT 50000 AS [Parent Income], -- client input here
 > 120 AS [IQ] -- client input here
 > ) AS T
 >
 > --
 > --
 > --
 > This posting is provided "AS IS" with no warranties, and confers no rights.
 > Please do not send email directly to this alias. It is for newsgroup
 > purposes only.
 >
 > thanks,
 > bogdan
 >
 > "B.J." <BJ DeleteThis @discussions.microsoft.com> wrote in message
 > news:9E901559-13E5-4B72-BFA6-6F3CA98E92DA@microsoft.com...
  > > Hi,
  > >
  > > Can I execute from code refreshing of data and full processing of Mining
  > > Model ?
  > > And also execute prediction query on this mining model with client input ?
  > >
  > > Thank you
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Scripting data mining 
Back to top
Login to vote
Bogdan Crivat MSFT

External


Since: Feb 20, 2004
Posts: 12



(Msg. 4) Posted: Fri Feb 11, 2005 9:19 pm
Post subject: Re: Scripting data mining [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

SqlConnection only works with SQL Server.
For Analysis Services you should use the generic OleDb classes in ADO.Net:
System.Data.OleDb.OleDbConnection and System.Data.OleDb.OleDbCommand
The connection string should look like:
"Provider=MSOLAP; Data Source=<Your Server Name>; Initial Catalog=<Your
Database>";


A query analyzer-like tool for Analysis Services Data Mining is available as
a sample at:
<a style='text-decoration: underline;' href="http://www.sqlserverdatamining.com/DMCommunity/SQLServer2000/Links_LinkRedirector.aspx?id=109" target="_blank">http://www.sqlserverdatamining.com/DMCommunity/SQLServer2000/Links_Lin...directo</a>


If you have Analysis Services 2000 installed, most likely you have the
FoodMart 2000 sample database installed as well.
Once you connect to that database, you can issue a query like below, for
test purposes:

select [member card] FROM [Member Card RDBMS] NATURAL PREDICTION JOIN
(SELECT 'M' AS [marital status]) AS T



--
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. It is for newsgroup
purposes only.

thanks,
bogdan

"B.J." <BJ RemoveThis @discussions.microsoft.com> wrote in message
news:DE7ADB20-4549-4D14-AA55-78C30F2B4824@microsoft.com...
 > Thank you. I have one additional question (becuase I never worked with MS
SQL
 > Analysis server, only with MS SQL 2000 Database server).
 > I want to code it in C#.NET. Should I used classical SqlConnection and
 > SqlCommand objects (as when connecting relational database) also for
 > connecting to analysis server ?
 > And can I somehow run this query in Query Analyzer or some other tool
 > respectively in Visual Studio .NET for quick testing ?
 >
 > Yet one more thanks.
 >
 > "Bogdan Crivat [MSFT]" wrote:
 >
  > > I assume you are using Data Mining coming with Microsoft Analysis
Services.
  > > Yes, you can do that. Open an OLEDB (or ADO, or ADO.Net) connection to
the
  > > Analysis Services server.
  > > On that connection, you can execute INSERT INTO to fully reprocess a
data
  > > mining model
  > > A singleton prediction query is most likely the best solution for
predicting
  > > based on client input:
  > >
  > > Something like:
  > >
  > > SELECT [College Plans] -- the column to predict
  > > FROM [CPModel] -- the model to predict from
  > > NATURAL PREDICTION JOIN
  > > ( SELECT 50000 AS [Parent Income], -- client input here
  > > 120 AS [IQ] -- client input here
  > > ) AS T
  > >
  > > --
  > > --
  > > --
  > > This posting is provided "AS IS" with no warranties, and confers no
rights.
  > > Please do not send email directly to this alias. It is for newsgroup
  > > purposes only.
  > >
  > > thanks,
  > > bogdan
  > >
  > > "B.J." <BJ RemoveThis @discussions.microsoft.com> wrote in message
  > > news:9E901559-13E5-4B72-BFA6-6F3CA98E92DA@microsoft.com...
   > > > Hi,
   > > >
   > > > Can I execute from code refreshing of data and full processing of
Mining
   > > > Model ?
   > > > And also execute prediction query on this mining model with client
input ?
   > > >
   > > > Thank you
  > >
  > >
  > ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Scripting data mining 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Looking for one place to get your data mining information? - Join www.datamikado.com for all your question, information, links, blogs, discussion related to data mining and analytics. Here is the link: http://www.datamikado.com/?xgi=6yt2Usn sandeep

custom data mining algorithm - I have been using 'A Tutorial for Constructing a Managed Plug-In Algorithm' to develop my custom algorithm. I have successfully developed the code needed to train the algorithm but I am little confused on what to do for the prediction part of the..

CFP: Data Mining 2008 - new date - Apologies for cross-postings. Please send to interested colleagues and students -- CALL FOR PAPERS - Deadline for submissions (new date): 31 March 2008 -- IADIS EUROPEAN CONFERENCE ON DATA MINING 2008 Amsterdam, The Netherlands, 24 to 26 July 2008..

Data Mining in SQL Server 2008 - What are some of the enhancement and new features related to Data Mining that I can expect in SQL Server 2008? thank you, Gustavo Frederico

Data Mining Addins for office 2007 Question - Hi, I am new to Data Mining tools. I downloaded Data Mining addins for office 2007 from below web site. http://www.microsoft.com/downloads/details.aspx?FamilyId=7c76e8df-8674-4c3b-a99b-55b17f3c4c51&displaylang=en I was able to installed succuess f...
   Database Help (Home) -> Datamining All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]