yuqiliao / InternationalAssessment_MachineLearning

Exploring the applying machine learning techniques to the international studies
1 stars 0 forks source link

rescaling and recentering data #4

Closed nguyentr17 closed 6 years ago

nguyentr17 commented 6 years ago
yuqiliao commented 6 years ago

It is good practice to standardize the data before training the model (see here and here).

For the specific case of dealing with 2-level likert scale and 4-level likert scales, we still need to standardize the data (centering and rescaling so that they have a mean of 0 and sd of 1). See here and here for a method to standardize the data, which is not exactly the same as haivng a mean of 0 and sd of 1, but the idea is the same.

nguyentr17 commented 6 years ago

@yuqiliao will add the code to standardize the data.