Member-only story
How to Create an Interactive Classification Model Web Tool via R Shiny — Iris Dataset?
Purpose: This session is to show you how to build a web-based tool to let user select classification approaches for the Iris dataset. We are going to include SVM, K-mean and Hierarchical Clustering in this version and will add more in the future.
Dataset Introduction: Link
User Interface:
- The default setting for dropdown is “SVM” and it is showing how the model classify the item based on petal length and petal width. The below table is to show the accuracy of the classification. If the real column does not equal predict column, it means the model misclassify those individual items.
2. You can select the “hclust” for hierarchy clustering or “Kmean” for K-mean clustering method.
Tool Structure:
R Shiny includes two main parts of codes, UI.R and Server.R.
- UI: The code of UI control the design and layout of tool with…