Machine Learning - Classification

Loading titanic data

setwd("d://ml//titanic")
test <- read.csv("test.csv")
train <- read.csv("train.csv")
# Set random seed. Don't remove this line
set.seed(1)
# Load the rpart, rattle, rpart.plot and RColorBrewer package
library(rpart);library(rattle);library(rpart.plot);library(RColorBrewer)
Error in inDL(x, as.logical(local), as.logical(now), ...) : 
  unable to load shared object 'C:/Users/hadooper/Documents/R/win-library/3.3/RGtk2/libs/x64/RGtk2.dll':
  LoadLibrary failure:  吏€<ec>젙<eb>맂 紐⑤뱢<ec>쓣 李얠쓣 <ec>닔 <ec>뾾<ec>뒿<eb>땲<eb>떎.

Failed to load RGtk2 dynamic library, attempting to install it.trying URL 'http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip'
Content type 'application/zip' length 25830230 bytes (24.6 MB)
downloaded 24.6 MB

'C:\Users\hadooper\Documents\R\win-library\3.3\RGtk2\gtk\x64\etc\gtk-2.0' already existsLearn more about GTK+ at http://www.gtk.org
If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable
IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN
Rattle: A free graphical interface for data mining with R.
Version 4.1.0 Copyright (c) 2006-2015 Togaware Pty Ltd.
Type 'rattle()' to shake, rattle, and roll your data.
# Fill in the ___, build a tree model: tree
tree <- rpart(Survived ~ ., data=train, method="class")
# Draw the decision tree
fancyRpartPlot(tree)

LS0tDQp0aXRsZTogIlIgTm90ZWJvb2siDQpvdXRwdXQ6IGh0bWxfbm90ZWJvb2sNCi0tLQ0KDQojTWFjaGluZSBMZWFybmluZyAtIENsYXNzaWZpY2F0aW9uDQojI0xvYWRpbmcgdGl0YW5pYyBkYXRhDQoNCmBgYHtyfQ0Kc2V0d2QoImQ6Ly9tbC8vdGl0YW5pYyIpDQoNCnRlc3QgPC0gcmVhZC5jc3YoInRlc3QuY3N2IikNCnRyYWluIDwtIHJlYWQuY3N2KCJ0cmFpbi5jc3YiKQ0KYGBgDQoNCmBgYHtyfQ0KIyBTZXQgcmFuZG9tIHNlZWQuIERvbid0IHJlbW92ZSB0aGlzIGxpbmUNCnNldC5zZWVkKDEpDQoNCiMgTG9hZCB0aGUgcnBhcnQsIHJhdHRsZSwgcnBhcnQucGxvdCBhbmQgUkNvbG9yQnJld2VyIHBhY2thZ2UNCmxpYnJhcnkocnBhcnQpO2xpYnJhcnkocmF0dGxlKTtsaWJyYXJ5KHJwYXJ0LnBsb3QpO2xpYnJhcnkoUkNvbG9yQnJld2VyKQ0KDQojIEZpbGwgaW4gdGhlIF9fXywgYnVpbGQgYSB0cmVlIG1vZGVsOiB0cmVlDQp0cmVlIDwtIHJwYXJ0KFN1cnZpdmVkIH4gLiwgZGF0YT10cmFpbiwgbWV0aG9kPSJjbGFzcyIpDQoNCiMgRHJhdyB0aGUgZGVjaXNpb24gdHJlZQ0KZmFuY3lScGFydFBsb3QodHJlZSkNCmBgYA0KDQoNCg==