Skip to content

ESmote - An R package implemneting fast SMOTE algorithm

Notifications You must be signed in to change notification settings

HMJiangGatech/ESmote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esmote

esmote, an R package including fast SMOTE algorithm.

This is part of my undergraduate final year project. Which provide a really fast implementation of SMOTE algorithm.

If you have any concerns please contact me: jianghm.ustc@gmail.com

Some functions are still underconstruction. Ex. I developed a semi-supervised autoencoder to deal with high-dimensional data. However I did not provide a well documented R warpper. You may refer to the source code (./tests/testPer.R).

Installation

First install devtools in R:

install.packages("devtools")

Install package via install_github:

library(devtools)
install_github('HMJiangGatech/ESmote')

Practical Example

This package contains some test data, such as hand written digits data.

newlabel = digitsTrainLabel;
newlabel[newlabel>0] = 1;
newID = sample(60000);
timestart<-Sys.time();

newdata<-esmote::Smote(digitsTrain[newID,],newlabel[newID], algorithm="rp_forest");

timeend<-Sys.time()
runningtime<-timeend-timestart
print(runningtime)

Compared to other packasges such as: DMwR, smotefamily, it is extremely fast.

About

ESmote - An R package implemneting fast SMOTE algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published