GithubHelp home page GithubHelp logo

xuying-6 / srcfs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from huangdonghere/srcfs

0.0 0.0 0.0 18 KB

MATLAB code for Unsupervised Feature Selection with Multi-Subspace Randomization and Collaboration (SRCFS) (KBS 2019)

MATLAB 100.00%

srcfs's Introduction

SRCFS

Description

This repository provides the MATLAB source code for our SRCFS algorithm, which is an unsupervised feature selection algorithm presented in the following paper:

Dong Huang, Xiaosha Cai, and Chang-Dong Wang. “Unsupervised Feature Selection with Multi-Subspace 
Randomization and Collaboration”, Knowledge-Based Systems, vol.182, pp.104856, 2019.

Function

The function in SRCFS.m has four input parameters, namely, fea, para_K, para_s, and para_m. Please note that para_K, para_s, and para_m must be positive integers.

  • fea: the n*d data matrix with each row being a data sample.
  • para_K: the number of nearest neighobrs.
  • para_s: the number of random subspaces in each basic feature partition.
  • para_m: the number of basic feature partitions.

After performing the SRCFS method on the dataset, we can obtain the weights of all features computed by SRCFS as well as the ranking of all features according to the weights. Specifically, the ouputs of the main function are as follows:

  • feaWeights: the feature weights computed by SRCFS.
  • rankings: the ranking of all features according to their weights.

How to use?

If you need to select D features from the dataset with a data matrix fea, you can perform SRCFS like this:

[rankings,~] = SRCFS(fea);
selectedFeatureIdx = rankings(1:D);

Here, selectedFeatureIdx indicates the indices of D selected features. Then you can use these selected features for your specific tasks. For example, if you would like to perform k-means on the dataset with the selected features, you can do it like this:

newFea = fea(:,selectedFeatureIdx);
k = 5; % Number of clusters
clsResult = kmeans(newFea,k);

srcfs's People

Contributors

huangdonghere avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.