Skip to content

lokifacio/jni-glmnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JNI-GLMneet

This is a fork on the JVM wrapper for glment by Thomas Down, which aims to mimic R's glmnet APIs.

Current version is developed using glmnet5.f90 which adds support for poisson families

For more information on glmnet, visit this link

Supported features:

Currently jglmnet supports and has been tested to output the same results as R glmnent 3.3.2 for the following features:

  • GLMs:
Family Weights Offsets
Binomial X X
Poisson X X
  • Cross validation

    • Custom fold vector
  • Parallel support

Pending features:

  • Sparse matrix support

Build libglmnet.so

$ gcc -I${JAVA_HOME}/../include -I${JAVA_HOME}/../include/linux -c glmnet.c -fPIC
$ gcc -c glmnet5.f90 -fdefault-real-8 -ffixed-form -fPIC
$ gcc -shared -o libglmnet.so glmnet.o glmnet5.o -lm -lgfortran -fPic

Debug

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 -classpath glmnet-1.0.1-SNAPSHOT-jar-with-dependencies.jar jglmnet.glmnet.cv.PoissonTest

About

Small JVM wrapper for glmnet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Fortran 84.1%
  • Java 11.3%
  • C 3.1%
  • JavaScript 1.0%
  • Clojure 0.3%
  • Shell 0.1%
  • HTML 0.1%