From 859922b0ee3d2e9b58ce968138443ff89ddd524c Mon Sep 17 00:00:00 2001 From: stnava Date: Wed, 7 Jan 2015 11:37:58 -0600 Subject: [PATCH] DOC: syntax changes for data access --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c715f9a..468e066 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,14 @@ using SVM using RDatasets # We'll learn to separate setosa from other species -iris = data("datasets", "iris") +iris = dataset("datasets", "iris") # SVM format expects observations in columns and features in rows X = array(iris[:, 1:4])' p, n = size(X) # SVM format expects positive and negative examples to +1/-1 -Y = [species == "setosa" ? 1.0 : -1.0 for species in iris[:, "Species"]] +Y = [species == "setosa" ? 1.0 : -1.0 for species in iris[:Species]] # Select a subset of the data for training, test on the rest. train = randbool(n)