io.citrine:lolo

A random forest-centered machine learning library in Scala.

Лицензия

Лицензия

Группа

Группа

io.citrine
Идентификатор

Идентификатор

lolo
Последняя версия

Последняя версия

3.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

io.citrine:lolo
A random forest-centered machine learning library in Scala.
Ссылка на сайт

Ссылка на сайт

https://github.com/CitrineInformatics/lolo
Система контроля версий

Система контроля версий

http://github.com/CitrineInformatics/lolo/tree/master

Скачать lolo

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/io.citrine/lolo/ -->
<dependency>
    <groupId>io.citrine</groupId>
    <artifactId>lolo</artifactId>
    <version>3.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/io.citrine/lolo/
implementation 'io.citrine:lolo:3.0.1'
// https://jarcasting.com/artifacts/io.citrine/lolo/
implementation ("io.citrine:lolo:3.0.1")
'io.citrine:lolo:jar:3.0.1'
<dependency org="io.citrine" name="lolo" rev="3.0.1">
  <artifact name="lolo" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.citrine', module='lolo', version='3.0.1')
)
libraryDependencies += "io.citrine" % "lolo" % "3.0.1"
[io.citrine/lolo "3.0.1"]

Зависимости

compile (6)

Идентификатор библиотеки Тип Версия
com.github.fommil.netlib : all pom 1.1.2
io.citrine : theta jar 1.0.0
org.scalanlp : breeze_2.12 jar 0.13.2
org.knowm.xchart : xchart jar 3.5.2
org.scalactic : scalactic_2.12 jar 3.0.5
org.scala-lang : scala-library jar 2.12.4

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
org.scalatest : scalatest_2.12 jar 3.0.5

Модули Проекта

Данный проект не имеет модулей.

Lolo

Lolo

Travis

Lolo is a random forest-centered machine learning library in Scala.

The core of Lolo is bagging simple base learners, like decision trees, to imbue robust uncertainty estimates via jackknife-style variance estimators and explicit bias models.

Lolo supports:

  • continuous and categorical features
  • regression and classification trees
  • bagged learners to produce ensemble models, e.g. random forests
  • linear and ridge regression
  • regression leaf models, e.g. ridge regression trained on the leaf data
  • random rotation ensembles
  • bias-corrected jackknife-after-bootstrap and infinitesimal jackknife variance estimates
  • bias models trained on out-of-bag residuals
  • discrete influence scores, which characterize the response of a prediction each training instance
  • model based feature importance
  • distance correlation
  • hyperparameter optimization via grid or random search
  • out-of-bag error estimates
  • parallel training via scala parallel collections
  • validation metrics for accuracy and uncertainty quantification
  • visualization of predicted-vs-actual validations

Usage

Lolo is on the central repository, and can be used by simply adding the following dependency block in your pom file:

<dependency>
    <groupId>io.citrine</groupId>
    <artifactId>lolo</artifactId>
    <version>3.0.0</version>
</dependency>

Lolo provides higher level wrappers for common learner combinations. For example, you can use Random Forest with:

import io.citrine.lolo.learners.RandomForest
val trainingData: Seq[(Vector[Any], Any)] = features.zip(labels)
val model = new RandomForest().train(trainingData).getModel()
val predictions: Seq[Any] = model.transform(testInputs).getExpected()

Performance

Lolo prioritizes functionality over performance, but it is still quite fast. In its random forest use case, the complexity scales as:

Time complexity Training rows Features Trees
train O(n log n) O(n) O(n)
getLoss O(n log n) O(n) O(n)
getExpected O(log n) O(1) O(n)
getUncertainty O(n) O(1) O(n)

On an Ivy Bridge test platform, the (1024 row, 1024 tree, 8 feature) performance test took 1.4 sec to train and 2.3 ms per prediction with uncertainty.

Contributing

We welcome bug reports, feature requests, and pull requests. Pull requests should be made following the gitflow workflow. As contributions expand, we'll put more information here.

Authors

Related projects

  • randomForestCI is an R-based implementation of jackknife variance estimates by S. Wager
io.citrine

Citrine Informatics

Версии библиотеки

Версия
3.0.1
3.0.0
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.1
2.1.0
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.2
1.0.0
0.4.2
0.4.1
0.4.0
0.3.1
0.3.0
0.2.11
0.2.10
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0