machine learning normalizing data

3 views (last 30 days)
Moe Gattan
Moe Gattan on 10 Aug 2020
Answered: Aditya Patil on 17 Aug 2020
i need to predict supervisory post grade in a group of organization.The supervisory post have subordinates with lower grade( G1 to G10). The goal to input the subordinates grade and job family(occ).The output should predict supervisory(Head) grade and level.
example of a group in organization:
OCC TITLE GRADE Level
0510 Head cost control E 2 <-----predict this
0510 Sr. Accountant P 6 <------input
0510 Accountant P 5 <-----input
0503 Financial specialist G 9 <-----input
OCC is a category not numerical, so what is the best way to form the matrix and prepare in the datasets to have a normalized data? currently I am working with classification learner.

Answers (1)

Aditya Patil
Aditya Patil on 17 Aug 2020
I understand that you want to consider OCC as categorical data. Use the categorical function to create a categorical array from a numerical array.
For example,
occ = [0510, 0510, 0510, 0503];
occ_cat = categorical(occ);
Then use the this array in classification learner app.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!