Giter Site home page Giter Site logo

sarahromanes / multida Goto Github PK

View Code? Open in Web Editor NEW
11.0 6.0 2.0 2.75 MB

High Dimensional Discriminant Analysis in R :sparkles:

Home Page: https://sarahromanes.github.io/multiDA/

R 100.00%
r rstats machine-learning discriminant-analysis classification r-package rpackage

multida's Introduction

multiDA Build Status

High Dimensional Discriminant Analysis using Multiple Hypothesis Testing

Overview

multiDA is a Discriminant Analysis (DA) algorithm capable for use in high dimensional datasets, providing feature selection through multiple hypothesis testing. This algorithm has minimal tuning parameters, is easy to use, and offers improvement in speed compared to existing DA classifiers.

Publication to appear in JCGS. See our preprint - available on arXiv, here.

This package is part of a suite of discriminant analysis packages we have authored for large-scale/complex datasets. See also our package genDA, a statistical ML method for Multi-distributional Discriminant Analysis using Generalised Linear Latent Variable Modelling.

Installation

# Install the development version from GitHub:
# install.packages("devtools")
devtools::install_github("sarahromanes/multiDA")

Usage

The following example trains the multiDA classifier using the SRBCT dataset, and finds the resubstitution error rate.

y   <- SRBCT$y
X   <- SRBCT$X
res  <- multiDA(X, y, penalty="EBIC", equal.var=TRUE, set.options="exhaustive")
vals <- predict(res, newdata=X)$y.pred          #y.pred returns class labels
rser <- sum(vals!=y)/length(y)

A case study and overview of the statistical processes behind multiDA can be found here.

Authors

License

This project is licensed under the GPL-2 license.

Acknowledgements

I am grateful to everyone who has provided thoughtful and helpful comments to support me building my first package - especially members of the Sydney University Statistical Bioinformatics group and also the NUMBATS group at Monash University. You guys rock!

multida's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

wanderum gridl

multida's Issues

Data Frames Have Incompatible Dimensions

I have a data set with 2038 samples belonging to six classes. Classifier training fails because mR and add don't have the same number of columns.

> mR <- rbind(mR,add)
Error in rbind(deparse.level, ...) : 
  numbers of columns of arguments do not match

Steps to reproduce are:

  1. Download, from Dropbox, the R Data file Single Cell Research/SCProj-ClassifyR/data/segerstolpe_forDario.RData
load("segerstolpe_forDario.RData")
library(multiDA)
multiDA(t(segerstolpe), factor(cellTypes))

Installation of multiDA

Hi Author of multiDA! Just had a read of the package multiDA. Looks amazing and thought to implement it. By any chance, do you know which version of R does the package support? as it doesn't support version R 3.5.2. Many thanks in advance.

Error if Missing Values

Is it feasible for it to work if there are missing values in the data set?

SRBCT$X[3, 3] <- NA
res  <- multiDA(SRBCT$X, SRBCT$y, penalty="EBIC", equal.var=TRUE, set.options="exhaustive")
Error in rbind(deparse.level, ...) : 
  numbers of columns of arguments do not match

sparsediscrim package's dlda function behaves similarly.

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.