Member-only story

How to Create an Interactive Classification Model Web Tool via R Shiny — Iris Dataset?

DigNo Ape
4 min readFeb 18, 2021

--

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:

  1. 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.

  1. UI: The code of UI control the design and layout of tool with…

--

--

DigNo Ape
DigNo Ape

Written by DigNo Ape

我們秉持著從原人進化的精神,不斷追求智慧的累積和工具的運用來提升生產力。我們相信,每一個成員都擁有無限的潛力,透過學習和實踐,不斷成長和進步。

No responses yet