Coder Social home page Coder Social logo

cy-dev / sparsesvm Goto Github PK

View Code? Open in Web Editor NEW
6.0 5.0 3.0 286 KB

Solution Paths of Sparse Linear Support Vector Machine with Lasso or ELastic-Net Regularization

R 42.14% C 57.66% Shell 0.19%
lasso elasticnet svm machine-learning-algorithms high-dimensional regularization-paths cran

sparsesvm's Introduction

Build Status CRAN_Status_Badge CRAN RStudio mirror downloads

sparseSVM

Solution Paths of Sparse Linear Support Vector Machine with Lasso or ELastic-Net Regularization

To install:

  • the released version from CRAN: install.packages("sparseSVM")
  • the latest version (require devtools): install_github("CY-dev/sparseSVM")

To report bugs:

sparsesvm's People

Contributors

cy-dev avatar privefl avatar wrathematics avatar yaohuizeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

yaohuizeng mu-bu

sparsesvm's Issues

Parameter `dfmax` not working properly.

set.seed(2)
X <- matrix(0, 200, 1000)
X[] <- rnorm(length(X))
y <- sample(0:1, size = nrow(X), replace = TRUE)

test <- sparseSVM::sparseSVM(X, y, dfmax = 20)
print(colSums(test$weights != 0))

Each time, it stops before evaluating the 100 values of lambda, but always a little too late.
It should have stopped at lambda = 0.1229 but continues evaluating at 6 other values of lambda.

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.