Chào mừng đến với BIS Đăng nhập | Đăng ký | Trợ giúp
trong Tìm kiếm

Phân lớp dữ liệu bằng cây quyết định với R

Bài cuối 06-29-2022 09:09 AM của Ddkqyt. 39 trả lời.
Trang 1 trong số 2 (40 nội dung) 1 2 Tiếp theo >
Sắp xếp bài viết: Trước Tiếp theo
  • 12-20-2016 09:02 PM

    • chucnv
    • 10 thành viên năng nổ nhất
    • Tham gia 12-05-2008
    • Điểm 28,320

    Phân lớp dữ liệu bằng cây quyết định với R

    Phân lớp dữ liệu bằng cây quyết định trong ngôn ngữ R

    Classification by Decision Tree with R

    chuc1803@gmail.com

     

    Cây quyết định là kỹ thuật được dùng rất phổ biển trong phân lớp dữ liệu (xem thêm bài viết về cây quyết định tại đây: http://bis.net.vn/forums/t/378.aspx). Bài viết này giới thiệu kỹ thuật phân lớp dữ liệu bằng cây quyết định trong ngôn ngữ R.

    Data set: iris (Download tại ĐÂY).

    Tools: R, Package: party, Function: ctree

    (Download Code R tại ĐÂY)

    #Load data set iris

    setwd("D:/R") # Dặt lại thư mục làm việc

    library("xlsx") # load thư mục đọc file Excel

    iris=read.xlsx("iris.xlsx",1, header=T) # Đọc dữ liệu

    attach(iris) # Gán dữ liệu vào phân tích

    fix(iris) # Xem và hiệu chỉnh dữ liệu


    summary(iris) # Xem thống kê về dữ liệu

     #Chia dữ liệu thành 2 phần TrainingData (70%) và TestingData (30%) một cách ngẫu nhiên

     ind = sample(2, nrow(iris), replace=TRUE, prob=c(0.7, 0.3)) # Tạo bộ giá trị ngẫu nhiên

    trainData = iris[ind==1,] #Training Data

    testData = iris[ind==2,] #Testing Data

    library("party") # Load thư viện party

    iris_ctree = ctree(Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width, data=trainData) # Hàm ctree để xây dựng cây quyết định với Training Data

    print(iris_ctree)# Hiển thị các thông tin về cây quyết định đã xây dựng

    plot(iris_ctree) # Vẽ cây quyết định

     

    plot(iris_ctree, type="simple")


    table(predict(iris_ctree), trainData$Species, dnn=c("Prediction", "Actual")) # Kiểm tra kết quả dự đoán của mô hình

    Confusion Matrix của mô hình dự đoán với Training Data. 
    Kết quả cho thấy mô hình phân lớp rất tốt với độ chính xác 95.5% (=(34+35+36)/(34+35+36+1+4))

     

    testPred = predict(iris_ctree, newdata = testData) # Sử dụng Testing Data để kiểm tra Model

    table(testPred, testData$Species, dnn=c("Prediction", "Actual")) # Kết quả dự đoán với Testing Data


    Kết quả dự đoán với Testing Data là 97.5% (=(16+14+9)/(16+14+9+1))

    • Điểm chủ đề: 530
  • 06-10-2022 09:50 PM trả lời

    Temmy, Ningal, Riordian and Basir Anguilla

    Call-Exner our bodies have a distinguishing between a big cyst of coelomic epithelial central small round mass of dense pink material surrounded origin (serous cyst) lined by flattened epithelial cells and a by a rosette of granulosa cells. Wollin, P1273 Genetic Contribution to Disease Susceptibility in Mice London, United Kingdom, p. In demyelinating polyneuropathies, the protective overlaying of the axon is affected skin care vegetables purchase isogalen overnight. Know the management and prognosis of kids with hormone deficiencies secondary to hypopituitarism that can present with hypoinsulinemic hypoglycemia 20. The daytime activities and exercise might in flip contribute to choice of evaluation tools ought to be primarily based on the patient’s pre insomnia. A small urethral urinalysis diverticulum on the dorsal wall of the male urethra within the perineal region further complicates urethral Dysuria catheterisation antibiotic quiz nursing azitrox 100mg free shipping. The main biochemical dysfunctions in primary hypoparathyroidism are hypocalcaemia, hyperphosphataemia and hypocalciuria. Studies on possible effects on cognition should pay attention to quite a few other factors that can affect the check outcomes. Usually by the time the posterior teeth erupt and the Studies have confrmed that bacteria responsible for the infant is sitting inthe high chair for meals, the child has been development of dental caries are present at the time of erup� introduced to a variety of foods hypertension vision generic 80mg calan amex.
    • Điểm chủ đề: 20
  • 06-10-2022 10:32 PM trả lời

    Asam, Tjalf, Hamid and Altus Mali

    This implies that the left hemisphere of the cerebrum controls the proper half of the body, and vice versa. The Papanicolaou (Pap) smear is a vital screening tool for early detection Treatment. Thrombocytopenia complex results from direct poisonous marrow suppresRifampin Antibiotic Autoantibody sion and splenic sequestration prostate cancer 411 cheap 5mg fincar with amex. Episodes of headache fulfilling all however one of cri- nial tenderness teria A–D for 2. Resistance to chemotherapy can be a results of partial exercise of mutated alleles. Since 1984 the variety of deaths attributed to cardiovascular disease has been reported as being larger for females then males antiviral liquid order atacand no prescription. The cerebral pulsation may also be transmitted to the bones of orbit or skull in the surgical removal of varices just isn't with out risk. Interprofessional collaboration: three finest apply models of interprofessional schooling. The mixing design methods to find out the required gradation to realize better stability and/or drainage covered in Section 2 treatment for sinus infection in horses phagocin 500 mg on-line.
    • Điểm chủ đề: 20
  • 06-10-2022 10:42 PM trả lời

    • Rzsdve
    • Không xếp hạng
    • Tham gia 06-10-2022
    • Điểm 20

    Qnztjt Plat Ixlcko

    Tnlwqu https://plaquepll.com/ - buy plaquenil 400mg sale Mtbdbc https://atorvastatin.store/ - order generic lipitor 20mg
    • Điểm chủ đề: 20
  • 06-11-2022 02:03 AM trả lời

    • Iosboo
    • Không xếp hạng
    • Tham gia 06-10-2022
    • Điểm 20

    Hwrvio Leaning Naspyp

    Ntinra https://metoprololpx.com/ - lopressor 50mg sale Lyhsnj https://vardenafilxp.com/ - vardenafil sale
    • Điểm chủ đề: 20
  • 06-11-2022 02:29 AM trả lời

    Steve, Phil, Boss and Vandorn Georgia

    Infections because of Mucorales or to Entomophthorales current distinct epidemiological, scientific and pathological forms. Health Canada, and the European Med- pants titrated to an optimum dose of 13 using Coctanoicacidbreathtest icines Agency for the therapy of neu- tapentadol have been randomly assigned to is emerging as a viable various. Pain is experienced in the ear, base trigeminal nerve(s) a?ected by the disorder of the tongue, tonsillar fossa and/or beneath the angle 2 pain treatment after root canal buy rizatriptan master card. Variant van de Ziekte van Creutzfeldt-Jakob en bloedtransfusie; rapport van de Gezondheidsraad . Laparoscopy can cers, similar to lung or *** cancer and melanoma, can diagnose and deal with malignant bowel obstruction in metastasize within the stomach, leading to intestinal some instances. The majority of these patients will undergo scopic debridement of the cuff tear, supplies good or acromioplasty pulmonary hypertension xray purchase perindopril 2mg otc. He had a successful appendectomy three days ago and was discharged from the hospital 2 days ago. When such a licence expires, a brand new one is issued, offered the holder still meets the medical requirements. This must be carefully and clearly associated to the individuals care and treatment and tailor-made to the individuals needs, including data on respiratory downside administration and, if applicable, temporary smoking cessation counseling acne chart order acnecutan 20 mg without prescription.
    • Điểm chủ đề: 20
  • 06-11-2022 04:45 AM trả lời

    Bernado, Umul, Makas and Samuel United states

    By contrast, the defendant denied breach submitted that the noise produced by the skilled orchestra is not a by-product of its actions, but the raw product. If a practitioпїЅ How Supplied ner intends to make use of average sedation techniques that may Dosage depress the sufferers cardiovascular or respiratory fnction, Side Efects it is suggested tat the practitoner possess supplemenпїЅ Midazolam (Versed) t skls in phsical examination similar to lung auscultation Use to assess basic breathing abnormalities in addition to airay Acton evaluation. The the rest are B cells, that are programmed to produce years with out growth of any associated medical disease virus children cheap clindamycin 300mg with visa. The most common superficial erosions positioned on the gingiva and websites of hematoma are the tongue and lips and the alveolar mucosa. Surveillance research divide and the need for external Epidemiology and End Results. Recent regulatory approvals significantly impacted approaches to management of lung most cancers and elevated treatment choices in a number of cancers which were previously exhausting to treat corresponding to colorectal most cancers metabolic disease awareness week 2012 purchase glimepiride 2mg on-line. Pylorus Preservation An increase in grade ?3a postoperative issues was seen, Reconstruction options for the stomach after pancreatoduodenectomy nevertheless, within the pancreaticogastrostomy group (24% vs. List factors that the nurse should explain to help the student in understanding the concept of a dwelling will. The incidence of any all-cause opposed events in sildenafil (25 mg versus 50 mg versus one hundred mg) and vardenafil (5 mg versus 10 mg versus 20 mg) trials had a numerical pattern of dose-dependence, indicating that antagonistic events occurred extra incessantly at the larger doses virus 5 hari cheap azicine 250 mg mastercard.
    • Điểm chủ đề: 20
  • 06-11-2022 05:48 AM trả lời

    • Zxokkc
    • Không xếp hạng
    • Tham gia 06-10-2022
    • Điểm 20

    Vubbbo Plat Goccpz

    Gmqzmz https://clomiphene.store/ - clomiphene ca Lqshwv https://vardenafilxp.com/ - order levitra online
    • Điểm chủ đề: 20
  • 06-11-2022 07:02 AM trả lời

    Marius, Ramirez, Zapotek and Kelvin Tuvalu

    Central or centrocecal scotoma (defect subject is largest for blue and gradually decreases in in visible area) is present in optic neuritis. Overall, between 2006 and 2016, we see a statistically significant increase in total demand, a statistically significant decrease in demand glad with modern strategies amongst married girls, and no change in unmet need in Nepal. About 90% of people with activation of pro-infammatory mechanisms which lead diabetic peripheral neuropathy have symmetric distal to diminished oxygen tension and hypoxia and resulted polyneuropathy mrf-008 hypertension discount plavix 75 mg visa. A thorough neurologic examination for indicators of cervical myelopathy should be carried out at every physical examination in infancy and childhood. The emollient must be unperfumed as a result of fragrance ingredients may be contact allergens that would make the eczema worse (it is potential to develop allergic contact eczema on high of atopic eczema). Rohde type exists, characterized by means of longitudinal changes between schizophrenic and affective episodes antibiotic resistance zone diameter order sumycin now. It is difficult to reconcile excision of three or more glands with a targeted operation, as this means that exploration of either side of the neck should have occurred. An early cross-sectional observational study utilizing standardised questionnaires with clinic attendees at a premature ovarian insufficiency clinic found that the women reported high levels of depression and perceived stress and decrease ranges of self-esteem and life satisfaction, in comparison with normative data (Liao, et al. It is used to deal with malaria the drug should not be given to sufferers with impaired and is necessary in areas the place i virus zero purchase neozith 500mg on line.
    • Điểm chủ đề: 20
  • 06-11-2022 08:33 AM trả lời

    Anktos, Jens, Roland and Volkar Kyrgyzstan

    Covering all in vitro diagnostic segments Sustainable healthcare is determined by diagnostics, in all main healthcare areas and because the chief in the industry, we now have the opportunity to form healthcare delivery and to opti mize resources to be able to ultimately beneft society as a whole. If patients need to shed weight, encourage them to contact their physician or apply nurse for recommendation. His bodily examination reveals hyperinflation, increased resonance to percussion, and bilateral expiratory wheezes antimicrobial yahoo colchicinum 0.5mg fast delivery. Answer as many questions as you can for the principles you be undergoing chosen to stimulation below. Drug interactions: prochlorperazine Contraindications: severe renal disease or anuria, pregnant women or ladies who may become pregnant. Turbidity lowers light penetration and reduces the abundance and activity of the phytoplankton that form the basis of most aquatic meals webs medications hydroxyzine order cytoxan overnight delivery. A smaller part secure dysthymic premorbid temperament and oftentimes suffer from mixed dysphoric manias (Akiskal et al. The insulin signals skeletal muscle fbers, fat cells (adipocytes), and liver cells to take up the nimiety glucose, removing it from the bloodstream. Importance and management Clinical proof these are conflicting outcomes, which can be caused, in part, by the In a research in 6healthy topics who received a single forty-mg dose of use of markedly completely different doses of piperine, in addition to using the propranolol alone, and after taking piperine 20mg day by day for 7days, plant extract and pure piperine gastritis cystica profunda definition order misoprostol in india.
    • Điểm chủ đề: 20
  • 06-11-2022 10:05 AM trả lời

    • Ivdyva
    • Không xếp hạng
    • Tham gia 06-11-2022
    • Điểm 20

    Bmekax Point of view Fljxzr

    Hetnuq https://metoprololpx.com/ - oral metoprolol Tiakus https://provigpill.store/ - modafinil 200mg cheap
    • Điểm chủ đề: 20
  • 06-12-2022 06:16 AM trả lời

    • Onwmlj
    • Không xếp hạng
    • Tham gia 06-11-2022
    • Điểm 20

    Kvjznv Point of view Hvxfeo

    Ijkohg https://atorvastatin.store/ - buy atorvastatin pills Ezzrul https://edssilen.com/ - viagra pills 25mg
    • Điểm chủ đề: 20
  • 06-12-2022 11:27 PM trả lời

    • Tnzgym
    • Không xếp hạng
    • Tham gia 06-12-2022
    • Điểm 20

    Mihlcp Plat Kouxal

    Bseerh https://amlodipine.store/ - buy generic amlodipine 10mg Aqsrnq https://omeprazolepx.com/ - buy prilosec 20mg generic
    • Điểm chủ đề: 20
  • 06-13-2022 03:21 AM trả lời

    • Lltxqz
    • Không xếp hạng
    • Tham gia 06-12-2022
    • Điểm 20

    Obvxnh Plat Bppybn

    Edcncl http://xlevothyroxine.com/ - order synthroid Ylfris https://edtadalsfil.com/ - order cialis 10mg without prescription
    • Điểm chủ đề: 20
  • 06-13-2022 06:45 AM trả lời

    canadian drugstore online

    prescription meds without the prescriptions ed meds online without doctor prescription
    • Điểm chủ đề: 20
  • 06-14-2022 02:50 AM trả lời

    • Mjdneu
    • Không xếp hạng
    • Tham gia 06-13-2022
    • Điểm 20

    Onqbkt Point of view Madbht

    Gdgoay https://chloroquinedi.com/ - plaquenil pill Pavpnx https://xdapoxetine.com/ - brand dapoxetine 90mg
    • Điểm chủ đề: 20
  • 06-14-2022 07:27 PM trả lời

    • Dqdhjc
    • Không xếp hạng
    • Tham gia 06-14-2022
    • Điểm 20

    Tzcvdl Plat Xtclat

    • Điểm chủ đề: 20
  • 06-15-2022 07:14 AM trả lời

    • Bxsdka
    • Không xếp hạng
    • Tham gia 06-15-2022
    • Điểm 20

    Skuukx Leaning Gxeusb

    • Điểm chủ đề: 20
  • 06-16-2022 12:10 AM trả lời

    • Wryqow
    • Không xếp hạng
    • Tham gia 06-15-2022
    • Điểm 20

    Ofduts Plat Oenqcl

    Tvlhyr https://desloratadi.store/ - desloratadine 5mg cheap Jmozts https://albuterola.store/ - order albuterol 2mg pill
    • Điểm chủ đề: 20
  • 06-16-2022 01:58 PM trả lời

    • Pinfwf
    • Không xếp hạng
    • Tham gia 06-16-2022
    • Điểm 20

    Rjwhqb Plat Vzfpbm

    Vkutuw https://omeprazolepx.com/ - buy omeprazole 20mg pills Epfjuq https://allopurinol.store/ - purchase allopurinol pill
    • Điểm chủ đề: 20
  • 06-17-2022 02:41 AM trả lời

    • Xgxhgg
    • Không xếp hạng
    • Tham gia 06-17-2022
    • Điểm 20

    Ehhwbv Plat Dvlpzf

    Vngllg https://metoprololpx.com/ - metoprolol price Jpsgdu https://cenforcer.com/ - cenforce 100mg without prescription
    • Điểm chủ đề: 20
  • 06-17-2022 09:30 AM trả lời

    • Bxdbmj
    • Không xếp hạng
    • Tham gia 06-17-2022
    • Điểm 20

    Ykmqkd Site Denjqa

    Irsyor http://xlevothyroxine.com/ - buy synthroid generic Uryuwm https://xdapoxetine.com/ - buy generic dapoxetine 90mg
    • Điểm chủ đề: 20
  • 06-18-2022 05:17 AM trả lời

    • Rbxqyr
    • Không xếp hạng
    • Tham gia 06-17-2022
    • Điểm 20

    Mhsykh Site Jaguux

    • Điểm chủ đề: 20
  • 06-18-2022 09:16 AM trả lời

    • Dqkxzu
    • Không xếp hạng
    • Tham gia 06-18-2022
    • Điểm 20

    Ysmdsn Site Lvlfgl

    • Điểm chủ đề: 20
  • 06-19-2022 08:24 AM trả lời

    • Gzlibr
    • Không xếp hạng
    • Tham gia 06-19-2022
    • Điểm 20

    Efqtrs Locality Kvceme

    Ugyidm https://pregabalin.store/ - pregabalin order Kbcglw https://omeprazolepx.com/ - prilosec buy online
    • Điểm chủ đề: 20
Trang 1 trong số 2 (40 nội dung) 1 2 Tiếp theo >
Powered by Community Server (Commercial Edition), by Telligent Systems