Publications by Huang Po-Jui
term_paper
load game data game<- read.csv("C:/Users/user0522/Documents/GitHub/Baseball_db_HPJ/unstandardized_data.csv") check na colSums(is.na(game)) ## X result release_speed release_pos_x ## 0 0 0 0 ## release_pos_z description ...
712 sym R (36079 sym/64 pcs) 6 img
Assignment4
1. Predict legendary pokemon using SVM: One-Hot-Encoding vs. KNN (hint: you can reference Week 10’s Rpubs to complete this assignment) (1a) Load required packages and data library(dplyr) library(ggplot2) library(tidyr) library(caret) library(skimr) library(psych) library(e1071) library(data.table) library(Matrix) library(keras) poke ...
3603 sym R (14069 sym/87 pcs) 1 img
Assignment4
1. Predict legendary pokemon using SVM: One-Hot-Encoding vs. KNN (hint: you can reference Week 10’s Rpubs to complete this assignment) (1a) Load requiredinstall.packages(c(“dplyr”, “ggplot2”, “tidyr”, “reshape2”, “caret”, “skimr”, “psych”, “e1071”, “data.table”, “Matrix”, “keras”)) packages and da...
2051 sym R (7116 sym/44 pcs)
Assignment3
1.1. Comparing model fit 1a. Load the Credit data (from the ISLR package)Also load the tidyverse, ggplot2, and dplyr packages, you will need them for arranging the data and plotting library(ISLR) library(tidyverse) library(ggplot2) library(dplyr) data("Credit") 1b. Set seed to 123 (set.seed(123)), do a 75-25 train-test split on the variabl...
7593 sym R (6070 sym/36 pcs) 4 img
Assignment2
1. Load the default data (from the ISLR package) library(ISLR) data("Default") 2. Do the followings. (2a) Data dimension: How many rows (number of observations) and columns (number of variables) are in this data? dim(Default) ## [1] 10000 4 Total rows are 1000 and total columns are 4. (2b) How many variables are in the data? How many of th...
4974 sym R (7675 sym/37 pcs)
Assignment1
1. Load required packages (ISLR) and data (Carseats) require(ISLR) Carseats <- read.csv(file = 'C:/Users/user0522/Downloads/dataset-11424.csv') I made a copy of Carseats. Because library() does not work on R markdown, instead, I use require(). 2. Do the followings. (2a) Data dimension: How many rows (number of observations) and columns (number...
4371 sym 3 img