How to use ReliefF algorithm for a dataset?

조회 수: 9 (최근 30일)
phdcomputer Eng
phdcomputer Eng 2020년 4월 7일
답변: Jingwei Too 2020년 7월 23일
I want to use ReliefF feature selection algorithm for a dataset(colon), I found this code for ReliefF function from github website (I attached two file ReliefF_Zeal and test_ReliefF) and also Matlab Help is similar to this code
function [Rank, Score] = ReliefF_Zeal(X, y, K)
[Rank, Score] = relieff(X, y, K);
end
but I don't know how to load my data (train and test) in this function, my goal was selecting 30 best features from the data,I'll be very gratefull to have your opinions. Thanks
  댓글 수: 1
Demet Yesilbas
Demet Yesilbas 2020년 6월 19일
Hi,
I am also interested about Relief-F for a project and as I understood x is your input data, y is the target, k is a number can be 10(as I understood it depends on your data). But X must have as many rows as there are elements in Y.

댓글을 달려면 로그인하십시오.

답변 (1개)

Jingwei Too
Jingwei Too 2020년 7월 23일

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by