Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
^appveyor\.yml$
^azure-pipelines\.yml$
^bench$
^.clangd$
^codecov\.yml$
^compile_commands.json$
^CONDUCT\.md$
^config\.yaml$
^cran-comments\.md$
^CRAN-RELEASE$
^[^/]+.csv
^[^/]+.sh
^data-raw$
^\.dir-locals\.el$
^development.md$
^doc$
^docker$
^.dockerignore.*$
^docs$
^etc$
^\.github$
^\.github/workflows/pkgdown\.yaml$
^\.github/workflows/pr-commands\.yaml$
^\.github/workflows/R-CMD-check\.yaml$
^\.gitlab$
^home$
^\.httr-oauth$
^inst/bench$
^inst/db$
^inst/extdata/ext$
^inst/extdata/int$
^inst/extdata/tmp$
^inst/rcon$
^Jenkinsfile.*$
^LICENSE\.md$
.*log$
^logo\.png$
^logs$
^maven-project$
^Makefile.*$
^Makefile$
^man-roxygen$
^Meta$
^\.mypy_cache$
^notes$
^pkgdown$
^_pkgdown\.yml$
^poetry\.lock$
^Project\.toml$
^pyproject\.toml$
^\.python-version$
^rcon$
^renv$
^renv\.lock$
^.renvignore$
^README-.*\.png$
^README\.Rmd$
^resources\.txt$
^revdep$
^Rplots.*
^.Rprofile$
^\.\.Rcheck$
^.*\.Rproj$
^\.Rproj\.user$
^sanitize\.sh$
^script\.R$
^setup\.cfg$
^setup\.py$
^src/\.clang-format$
^src/\.ycm_extra_conf\.pyc?$
^TAGS$
^_targets$
^_targets\.R$
^temp$
^travis$
^travis/check_format\.sh$
^\.travis\.yml$
^vignettes/rsconnect$
^.vimrc$
39 changes: 39 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto eol=lf

*.sh text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
pom.xml text eol=lf
*.java text eol=lf
*.scala text eol=lf
*.xml text eol=lf
*.properties text eol=lf

# Denote all files that are truly binary and should not be modified.
*.gpg binary
*.png binary
*.jpg binary
*.gif binary
*.jpeg binary
*.zip binary
*.phar binary
*.ttf binary
*.woff binary
*.woff2 binary
*.eot binary
*.ico binary
*.mo binary
*.pdf binary
*.xsd binary
*.ts binary
*.exe binary

*.pt binary
*.pickle binary

*.docx binary
*.xslx binary
*.pptx binary
/NEWS.md merge=union
/.Rbuildignore merge=union
157 changes: 147 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,149 @@
/build
/.classpath
/.project
/.settings
/target
**/.settings/
**/.classpath
**/.project
**/.metadata
#**/bin/
**/*.2delete
**/target/
**/build/
*.egg-info
.idea/
*.iml
*.eml


# Ignore all dotfiles...
#.*

.#*




# except for .gitignore
!.gitignore
!.gitattributes

!.dockerignore
!.travis.yml


!.python-version


# python
venv/


###################
# Compiled source #
###################
*.com
*.class
docs
/src/*.o
/src/*.o-*
/src/*.d
/src/*.so

*.dll
*.exe
*.o
*.so


############
# setup.py #
############

/build/
/dist/

*.pyc
*.egg
*.whl

*.egg-info/

##########
# pytest #
##########

/.pytest_cache/

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso

### *.jar

*.rar
*.tar
#*.zip

# Logs and databases #
######################
*.log
*.tlog
*.sqlite
/logs/


# OS generated files #
######################
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db


# general
*~

# Eclipse
.settings
.project
.classpath

# IDEA
/.idea
/.idea_modules

# Sublime
*.sublime-project
*.sublime-workspace

# SPARK
metastore_db/
/doc/_build/
*.~undo-tree~
.RData
.Rproj.user
..Rcheck
.Rhistory
*.class
# Package Files #
*.jar
*.war
*.ear
Rplots.*
inst/doc
.httr-oauth
vignettes/*.R
.DS_Store
/clion-test.R
/BROWSE
/GPATH
/GRTAGS
/GTAGS
/TAGS
/.dir-locals.el
.obsidian/
/issues
/home
/logs
/temp
/.drake
bench-libs
doc
Meta
File renamed without changes.
14 changes: 7 additions & 7 deletions R-skeleton/NAMESPACE → NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import("rJava")
export(extraTrees, toRMatrix, toJavaMatrix, toJavaCSMatrix, toJavaMatrix2D, selectTrees, setJavaMemory, prepareForSave)
S3method(predict, extraTrees)
S3method(print, extraTrees)
S3method(extraTrees, default)
import("rJava")
export(extraTrees, toRMatrix, toJavaMatrix, toJavaCSMatrix, toJavaMatrix2D, selectTrees, setJavaMemory, prepareForSave)
S3method(predict, extraTrees)
S3method(print, extraTrees)
S3method(extraTrees, default)


8 changes: 4 additions & 4 deletions R-skeleton/R/extraTrees.R → R/extraTrees.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extraTrees <- function(x, ...) UseMethod("extraTrees", x)
extraTrees <- function(x, ...) UseMethod("extraTrees", x)



File renamed without changes.
4 changes: 2 additions & 2 deletions R-skeleton/R/onLoad.R → R/onLoad.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.onLoad <- function(libname, pkgname) {
.jpackage(pkgname, lib.loc = libname)
.onLoad <- function(libname, pkgname) {
.jpackage(pkgname, lib.loc = libname)
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added inst/java/ExtraTrees.jar
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
42 changes: 21 additions & 21 deletions R-skeleton/man/setJavaMemory.Rd → man/setJavaMemory.Rd
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
\name{setJavaMemory}
\alias{setJavaMemory}
\title{Utility function for setting Java memory.}
\description{
Function for setting JVM memory, specified in MB. If you get java.lang.OutOfMemoryError you can use this function to increase the memory available to ExtraTrees.
}
\usage{
setJavaMemory( memoryInMB )
}
\arguments{
\item{memoryInMB}{Integer specifying the amount of memory (MB)}
}
%\value{
%}
\author{Jaak Simm}
\examples{
## use 2G memory
setJavaMemory(2000)
}
\keyword{java.lang.OutOfMemoryError,memory,JVM}
\name{setJavaMemory}
\alias{setJavaMemory}
\title{Utility function for setting Java memory.}
\description{
Function for setting JVM memory, specified in MB. If you get java.lang.OutOfMemoryError you can use this function to increase the memory available to ExtraTrees.
}
\usage{
setJavaMemory( memoryInMB )
}
\arguments{
\item{memoryInMB}{Integer specifying the amount of memory (MB)}
}
%\value{
%}
\author{Jaak Simm}
\examples{
## use 2G memory
setJavaMemory(2000)
}
\keyword{java.lang.OutOfMemoryError,memory,JVM}

File renamed without changes.
36 changes: 18 additions & 18 deletions R-skeleton/man/toJavaMatrix.Rd → man/toJavaMatrix.Rd
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
\name{toJavaMatrix}
\alias{toJavaMatrix}
\title{Utility function for converting an R matrix (numeric matrix) to Java matrix.}
\description{
Internal function used for converting an R matrix to a Matrix object in Java. Matrix class is a custom Java class used for storing matrices by the implementation of ExtraTrees in Java.
}
\usage{
toJavaMatrix( m )
}
\arguments{
\item{m}{ matrix of numeric values. }
}
\value{
reference to Java matrix with the same contents as the input R matrix.
}
\author{Jaak Simm}
\keyword{java,matrix,conversion}
\name{toJavaMatrix}
\alias{toJavaMatrix}
\title{Utility function for converting an R matrix (numeric matrix) to Java matrix.}
\description{
Internal function used for converting an R matrix to a Matrix object in Java. Matrix class is a custom Java class used for storing matrices by the implementation of ExtraTrees in Java.
}
\usage{
toJavaMatrix( m )
}
\arguments{
\item{m}{ matrix of numeric values. }
}
\value{
reference to Java matrix with the same contents as the input R matrix.
}
\author{Jaak Simm}
\keyword{java,matrix,conversion}

Loading