Package: lolR 2.1

Eric Bridgeford

lolR: Linear Optimal Low-Rank Projection

Supervised learning techniques designed for the situation when the dimensionality exceeds the sample size have a tendency to overfit as the dimensionality of the data increases. To remedy this High dimensionality; low sample size (HDLSS) situation, we attempt to learn a lower-dimensional representation of the data before learning a classifier. That is, we project the data to a situation where the dimensionality is more manageable, and then are able to better apply standard classification or clustering techniques since we will have fewer dimensions to overfit. A number of previous works have focused on how to strategically reduce dimensionality in the unsupervised case, yet in the supervised HDLSS regime, few works have attempted to devise dimensionality reduction techniques that leverage the labels associated with the data. In this package and the associated manuscript Vogelstein et al. (2017) <arxiv:1709.01233>, we provide several methods for feature extraction, some utilizing labels and some not, along with easily extensible utilities to simplify cross-validative efforts to identify the best feature extraction method. Additionally, we include a series of adaptable benchmark simulations to serve as a standard for future investigative efforts into supervised HDLSS. Finally, we produce a comprehensive comparison of the included algorithms across a range of benchmark simulations and real data applications.

Authors:Eric Bridgeford [aut, cre], Minh Tang [ctb], Jason Yim [ctb], Joshua Vogelstein [ths]

lolR_2.1.tar.gz
lolR_2.1.zip(r-4.7)lolR_2.1.zip(r-4.6)lolR_2.1.zip(r-4.5)
lolR_2.1.tgz(r-4.6-any)lolR_2.1.tgz(r-4.5-any)
lolR_2.1.tar.gz(r-4.7-any)lolR_2.1.tar.gz(r-4.6-any)
lolR_2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
lolR/json (API)

# Install 'lolR' in R:
install.packages('lolR', repos = c('https://neurodata.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/neurodata/lol/issues

On CRAN:

Conda:

7.62 score 24 stars 97 scripts 215 downloads 26 exports 30 dependencies

Last updated from:86698eae5c. Checks:7 WARNING, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64WARNING156
source / vignettesOK255
linux-release-x86_64WARNING152
macos-release-arm64WARNING127
macos-oldrel-arm64WARNING148
windows-develWARNING111
windows-releaseWARNING104
windows-oldrelWARNING165
wasm-releaseOK114

Exports:lol.classify.nearestCentroidlol.classify.randomChancelol.classify.randomGuesslol.embedlol.project.bayes_optimallol.project.dplol.project.lollol.project.lrccalol.project.lrldalol.project.pcalol.project.plslol.project.rplol.sims.cigarlol.sims.crosslol.sims.fat_tailslol.sims.khumplol.sims.kidentlol.sims.mean_difflol.sims.qdtoeplol.sims.rev_rtrunklol.sims.rtrunklol.sims.toeplol.sims.xor2lol.xval.evallol.xval.optimal_dimselectlol.xval.split

Dependencies:abindclicpp11DEoptimRfarverfit.modelsggplot2gluegtableirlbaisobandlabelinglatticelifecycleMASSMatrixmvtnormpcaPPplsR6RColorBrewerrlangrobustrobustbaserrcovS7scalesvctrsviridisLitewithr

Nearest Centroid Classifier

Rendered fromnearestCentroid.Rmdusingknitr::rmarkdownon May 25 2026.

Last update: 2018-04-13
Started: 2018-01-25

Data Piling

Rendered fromdp.Rmdusingknitr::rmarkdownon May 25 2026.

Last update: 2018-04-13
Started: 2018-04-13

Extending lolR with Arbitrary Classification Algorithms

Rendered fromextend_classification.Rmdusingknitr::rmarkdownon May 25 2026.

Last update: 2018-04-13
Started: 2018-02-01

Extending lolR for Arbitrary Embedding Algorithms

Rendered fromextend_embedding.Rmdusingknitr::rmarkdownon May 25 2026.

Last update: 2018-04-13
Started: 2018-02-01

Linear Optimal Low-Rank Projection (LOL)

Rendered fromlol.Rmdusingknitr::rmarkdownon May 25 2026.

Last update: 2018-04-13
Started: 2017-12-13

Low-Rank Canonical Correlation Analysis (LR-CCA)

Rendered fromlrcca.Rmdusingknitr::rmarkdownon May 25 2026.

Last update: 2018-04-13
Started: 2017-12-13

Low-Rank Linear Discriminant Analysis

Rendered fromlrlda.Rmdusingknitr::rmarkdownon May 25 2026.

Last update: 2018-04-13
Started: 2017-12-13

Principal Component Analysis (PCA)

Rendered frompca.Rmdusingknitr::rmarkdownon May 25 2026.

Last update: 2018-04-13
Started: 2017-12-13

Partial Least-Squares (PLS)

Rendered frompls.Rmdusingknitr::rmarkdownon May 25 2026.

Last update: 2018-04-13
Started: 2018-03-15

Low-Rank Canonical Correlation Analysis (LR-CCA)

Rendered fromrp.Rmdusingknitr::rmarkdownon May 25 2026.

Last update: 2018-04-13
Started: 2018-04-13

LOL Simulations

Rendered fromsimulations.Rmdusingknitr::rmarkdownon May 25 2026.

Last update: 2018-06-01
Started: 2017-12-14

LOL Cross-Validation

Rendered fromxval.Rmdusingknitr::rmarkdownon May 25 2026.

Last update: 2018-04-13
Started: 2017-12-14

Readme and manuals

Help Manual

Help pageTopics
Nearest Centroid Classifier Traininglol.classify.nearestCentroid
Random Classifier Utilitylol.classify.rand
Randomly Chance Classifier Traininglol.classify.randomChance
Randomly Guessing Classifier Traininglol.classify.randomGuess
Embeddinglol.embed
Bayes Optimallol.project.bayes_optimal
Data Pilinglol.project.dp
Linear Optimal Low-Rank Projection (LOL)lol.project.lol
Low-rank Canonical Correlation Analysis (LR-CCA)lol.project.lrcca
Low-Rank Linear Discriminant Analysis (LRLDA)lol.project.lrlda
Principal Component Analysis (PCA)lol.project.pca
Partial Least-Squares (PLS)lol.project.pls
Random Projections (RP)lol.project.rp
Stacked Cigarlol.sims.cigar
Crosslol.sims.cross
Fat Tails Simulationlol.sims.fat_tails
Multiclass Trunklol.sims.khump
Multiclass Trunklol.sims.kident
Multiclass Trunklol.sims.ktrunk
Mean Difference Simulationlol.sims.mean_diff
Quadratic Discriminant Toeplitz Simulationlol.sims.qdtoep
Random Rotationlol.sims.random_rotate
Reverse Random Trunklol.sims.rev_rtrunk
Sample Random Rotationlol.sims.rotation
Random Trunklol.sims.rtrunk
GMM Simulatelol.sims.sim_gmm
Toeplitz Simulationlol.sims.toep
Xor Problemlol.sims.xor2
A utility to use irlba when necessarylol.utils.decomp
A function that performs a utility computation of information about the differences of the classes.lol.utils.deltas
A function that performs basic utilities about the data.lol.utils.info
A function for one-hot encoding categorical respose vectors.lol.utils.ohe
Embedding Cross Validationlol.xval.eval
Optimal Cross-Validated Number of Embedding Dimensionslol.xval.optimal_dimselect
Cross-Validation Data Splitterlol.xval.split
Nearest Centroid Classifier Predictionpredict.nearestCentroid
Randomly Chance Classifier Predictionpredict.randomChance
Randomly Guessing Classifier Predictionpredict.randomGuess