Learning note from datacamp; tree-based model
Learning note from datacamp; tree-based model เป็นโมเดลที่เราสามารถเห็นการแปลผล (interpretability) Tree-based learning model เรียงจาก easy -- > complicate Decision tree Bagging (bootstrap aggregation) tree Random forest Gradient boosting Update: 21-Mar-2021 การทำงานกับ categorical data เราต้องเปลี่ยนให้มันเป็น factor เพื่อที่จะนำค่าไปคำนวนทางสถิติได้ ทดลองกับข้อมูล imbalanced data, pubmed fingerprint print(model) Call: randomForest(formula = factor(Name) ~ ., data = df3) Type of random forest: classification Number of trees: 500 No. of variables tried at each split: 20 ## default value is square root of number of features OOB estimate of error rate: 5.88% ## out of bag Confusion matrix: ## this is bas...