Publications by H. K. Tseng
Statistical Learning: Week-14
U.S. Armament Cooperation Network at a glance: 1992-2017 Structural Topic Models (STM) A gentle introduction using international armament cooperation (IAC) data # load required packages and data library(stm) ## stm v1.3.6 successfully loaded. See ?stm for help. ## Papers, resources, and other materials at structuraltopicmodel.com data_sub ...
216 sym R (7655 sym/32 pcs) 9 img
Statistical Learning: Week-12
Leave-One-Out cross validation (LOOCV) Model validation using LOOCV # load required packages and data (we will be using AmesHousing data) install.packages(c("boot", "rsample", "AmesHousing")) ## Installing packages into 'C:/Users/hktse/Documents/R/win-library/3.6' ## (as 'lib' is unspecified) ## ## There is a binary version available but th...
387 sym R (18330 sym/66 pcs) 1 img
Statistical Learning: Week-13
Stripping raw text Stripping raw text using unnest_tokens() # load required packages install.packages(c("tibble", "tidytext", "ggplot2", "gutenbergr", "tidyr")) ## Installing packages into 'C:/Users/hktse/AppData/Local/R/win-library/4.2' ## (as 'lib' is unspecified) ## package 'tibble' successfully unpacked and MD5 sums checked ## Warning: cann...
496 sym R (50685 sym/151 pcs) 11 img
Statistical Learning: Week-11
\(K\)-means and hierarchical clustering among different types of wine Apply \(K\)-means and hierarchical clustering to wine data # load required packages and data (wine data) install.packages(c("HDclassif", "useful", "factoextra")) ## Installing packages into 'C:/Users/hktse/Documents/R/win-library/3.6' ## (as 'lib' is unspecified) ## package '...
348 sym R (15208 sym/128 pcs) 8 img
Statistical Learning: Week-10
## load required packages and data library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union library(ggplot2) library(tidyr) library(caret) ## Loading required pack...
656 sym R (50748 sym/231 pcs) 19 img
Statistical Learning: Week-9
Classifying Legendary Pokemons using SVM! Using SVM techniques to classify if a Pokemon is a legendary one. # install required packages in one-swoop install.packages(c("dplyr", "ggplot2", "tidyr", "reshape2", "caret", "skimr", "psych", "e1071", "data.table", "Matrix", "keras")) ## Installing packages into 'C:/Users/hktse/Documents/R/win-library/...
455 sym R (24478 sym/112 pcs) 3 img