Feature Scaling

Feature Scaling

#Feature Scalling
train_set[,2:3] = scale(train_set[,2:3])
test_set[,2:3] = scale(test_set[,2:3])
  • Add above code to perform Feature Scaling.
  • Here we use [,2:3] means all row & 2nd,3rd column.
  • Note in R index starts from 1 but in Python 0.


Comments

Popular posts from this blog

Download DataSet

Categorical Data