FitDataSet

버전 1.0.0 (1.15 KB) 작성자: Anan Yaghmour
Refit any data sat that contains categorical features into a complete numerical data set through appropriate mapping
다운로드 수: 6
업데이트 날짜: 2019/9/6

라이선스 보기

Suppose you have a data set of this form :

1st column entries: 1,2,3,55,6......
2nd column entries: "good","bad","fair"......
.
.
.

You want to use it to train a mathematical model that needs the data to be in numerical form, to do so follow the following:
1- Import the data as a STRING array.
2- Call FitDataSet and your imported dataset (as a string array) as its argument.

The output array would be as follow:
1st column:won't be changed since it's numerical.
2nd column:( let's say we have four different categories values for this feature) then the output for the 2nd column will be:2,3,4,1,1,2........

Note* No different categorical values under a specific feature will have the same mapping value, for example, let's take the feature "Country" with three different values:{US, UK, GR}, then no one of these values would result in the same numerical mapping.

인용 양식

Anan Yaghmour (2024). FitDataSet (https://www.mathworks.com/matlabcentral/fileexchange/72676-fitdataset), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2019a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Dictionaries에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0