Beruflich Dokumente
Kultur Dokumente
asp:feature
LANGUAGES: VB.NET
Subscription Services ASP.NET VERSIONS: ALL
Subscribe
SQL
Renew Subscription
asp.netNOW Newsletter
Change of Address
Server
Pay An Invoice
Subscription Packages
2005
asp.netPRO
Articles
Affiliate Spotlight
Data
411asp.net Directory
New Products
Mining
Book Reviews
Product Reviews
Opinion
Back Issues
Reprints/E-prints Create a Web Cross-
Search
Downloads sell Application
Premium Downloads
The first part of this article will explain key concepts and
walk you through the above process using the SQL
Server 2005 Data Mining tools. In the latter half we’ll
demonstrate the ease with which you can integrate the
predictive power of the mining model into your ASP.NET
W eb application using straightforward database access
code.
Figure 2: The mining model’s view of the customer movie purchase data.
Figure 3: Selecting columns we are interested in modeling for cross-sell in the Data
Mining Wizard.
GetRecommendations(alInputItems,
alRecommendedItems)
SELECT FLATTENED
TopCount(Predict([Customer Movies],
INCLUDE_STATISTICS),
$AdjustedProbability,
5)
FROM [Movie Recommendations]
NATURAL PREDICTION JOIN
( SELECT ( SELECT 'Star Wars' AS [Movie]
UNION
SELECT 'The Matrix' AS
[Movie] )
AS [Customer Movies] ) AS t
Figure 7: Obtain recommendations using DMX prediction join against mining model.
W ith the above input case data format in mind it’s now
easy to walk through the GetRecommendations code and
understand what it’s doing.
Conclusion
This article merely scratches the surface of the
possibilities that SQL Server 2005 Data Mining presents
for your ASP.NET applications. One idea for extending
this sample would be to add other customer attributes
such as demographics as inputs to potentially improve the
quality of the recommendations. Other possible W eb
applications include:
Targeted ads based on analysis of browsing behavior using
the Sequence_Clustering algorithm.
An online Help desk that finds the most appropriate answer
for a user’s query by using the Neural_Network algorithm in
conjunction with text mining technologies available in SQL
Server 2005 Data Transformation Services.
Copyright © 2005 Informant Communications Group. All Rights Reserved. • Site Use Agreement • Send feedback
to the Webmaster • Important information about privacy