SHARE
TWEET

Untitled

a guest May 19th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Split into data and labels
  2. dataset_train <- dataset_shuffle[1:2000, -1]
  3. dataset_test <- dataset_shuffle[2001:4000, -1]
  4. dataset_train_label <- dataset_shuffle[1:2000, 1]
  5. dataset_test_label <- dataset_shuffle[2001:4000, 1]
  6.  
  7. # Normalization
  8. normalizedTrainingData <- (dataset_train-min(dataset_train))/(max(dataset_train)-min(dataset_train))
  9. normalizedTestData <- (dataset_test-min(dataset_test))/(max(dataset_test)-min(dataset_test))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top