Xay dung m8 hinh khai thic: tuang to nhu tao mat bang trong ca se di/ lieu quan Mat mo hinh khai thic gem:
- Cot dit lieu diu vao - Cat dtr doin dugc - Thuat town lien quan
Vi du mat doan lenh xay dtmg m8 hinh khai phi du lieu dung de" du doin kieu the thinh vien cua mat Ichich hang sir dung that town cay quyet dinh:
Create mining model MemberCard_prediction
CustumerlD long key, Gender text discrete, Income long continous,
MemberCard text discrete predict, Purchase table(
ProductName text key, Quantity long continous
Using Microsoft_Decision_Trees
Huan luyen mo hinh khai phi: trong buerc nay cic thuat town khai phi du lieu bit d'au phan tich cic der lieu diu vio. Tity vio hieu qui cita tirng thuat town se cho thiy mei ttrcmg quan gift cic gii trt thuac firth.
Doan ma l'enh DMX de luyen ma hinh: Insert into MemberCard_prediction
(CustomerID,Gender,Age,Profession,Income,HouseOwner,MemberCard)
Trang 32j 90 A11278 — Doan TUT:1h COng
KHAI PHA Dv LIEU TRONG SQL SERVER 2012
OpenRowset(` sqloledb' :myserver': mylogin mypass ' ,` select
CustomerID,Gender,Age,Profession,Income,HouseOwner,MemberCard From customers')
Du doan: De du doom chimg to can mot m6 hinh da duqc huan luyen va new
dataset.Sir dung cac hang du doin duqc djnh nghia trong DMX de dua ra du doin. Vi du down mA lent' DMX du doin:
Select t.CustomerlD,t.LastName,M.MemberCard From MemberCardjrediction Prediction Join OpenRowset(`Provider=Microsoftiet.OLEDBVdata source=c:\customer.mdb%
`select * from customers') as t
On MemberCard_prediction.Gender=tgender And MemberCard_prediction.Age=t.Age And MemberCard_prediction.Profession--4.Profession And MemberCard_prediction.Income=t.Income And MemberCard_prediction.HouseOwner=t.HouseOwner Where NewCustomer.Age >30
c. M6t se ham du bao dtrqc dish nghia:
Trang 331 90 A11278 — Doan Thinh Cong
OWLS PISS Finis on Suit Cana MCA Predict lass 931 qt_ro. inelicravert kik Ws (gala: zdameni
Wei pair finlanio rattle beim id Felon
soli thind midi' a
move Matte nit siren to ra is gecko/aim Cori ohm :nand it *Sat
enact/glace SS at et *ski It Oils
((Kale :Cr, *AMISS/Min i
rthrmet >I the re iserag brakes athuK
cliatensuou Sca t :emcelaahmedh
tZLE:C.C.."_011) sidsiied ::am:..-jao: skids ::am:..-jao: skids
tit! Ws
KHAI PHA DU LIEU TRONG SQL SERVER 2012
Oneidas. than OirPYNteadPdh i.Cla.cD >al &Ski lain
Cin3 sailart *afar Clanserekeilig kit Mitigidelprist