Package: kerntools 1.2.0

kerntools: Kernel Functions and Tools for Machine Learning Applications

Kernel functions for diverse types of data (including, but not restricted to: nonnegative and real vectors, real matrices, categorical and ordinal variables, sets, strings), plus other utilities like kernel similarity, kernel Principal Components Analysis (PCA) and features' importance for Support Vector Machines (SVMs), which expand other 'R' packages like 'kernlab'.

Authors:Elies Ramon [aut, cre, cph]

kerntools_1.2.0.tar.gz
kerntools_1.2.0.zip(r-4.7)kerntools_1.2.0.zip(r-4.6)kerntools_1.2.0.zip(r-4.5)
kerntools_1.2.0.tgz(r-4.6-any)kerntools_1.2.0.tgz(r-4.5-any)
kerntools_1.2.0.tar.gz(r-4.7-any)kerntools_1.2.0.tar.gz(r-4.6-any)
kerntools_1.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
kerntools/json (API)

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

Bug tracker:https://github.com/elies-ramon/kerntools/issues

Pkgdown/docs site:https://elies-ramon.github.io

Datasets:

On CRAN:

Conda:

kernel-methodspca

5.73 score 3 stars 2 packages 20 scripts 278 downloads 47 exports 31 dependencies

Last updated from:1772947f92. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK155
source / vignettesOK244
linux-release-x86_64OK144
macos-release-arm64OK161
macos-oldrel-arm64OK194
windows-develOK84
windows-releaseOK136
windows-oldrelOK109
wasm-releaseOK111

Exports:AccAcc_rndaggregate_impAitchisonBoots_CIBrayCurtiscenterKcenterXChi2cLinearcosNormcosnormXdesparsifyDiracdummy_datadummy_varestimate_gammaF1FrobeniusfrobNormheatKhistKIntersectJaccardKendallkPCAkPCA_arrowskPCA_impKTALaplaceLinearminmaxMKCnmseNormal_CIplotImpPrecProcrustesRBFRecRuzickasimKSpeSpectrumsvm_impTSSvonNeumann

Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtableisobandkernlablabelinglifecyclemagrittrpillarpkgconfigplyrR6RColorBrewerRcppreshape2rlangS7scalesstringistringrtibbletidyselectutf8vctrsviridisLitewithr

Kernel functions
Purpose of this document | Introduction | Informal definition | Advantages | Feature space | Kernels for real vectors | Linear kernel | Definition | Usage | RBF kernel | Laplacian kernel | Kernels for real matrices | Frobenius kernel | Kernels for abundances (counts or frequencies) | Bray-Curtis kernel | Ruzicka kernel | Compositional-linear kernel | Aitchison kernel | Kernels for categorical data | Dirac kernel | Kernels for sets | Intersect kernel | Jaccard kernel | Kernels for ordinal data, ranks, and permutations | Kendall's $\tau$ kernel | Kernels for strings, sequences, or (short) texts | Spectrum kernel | Kernels for bag-of-words (BoW) or bags-of-visual-words data | $\chi^2$ kernel

Last update: 2025-02-19
Started: 2024-10-25

kerntools: R tools for kernel methods
Purpose | Loading | Package Overview | A simple example | A (slightly) more complicated example | Non-standard data, exotic normalizations, and more about feature spaces | Non-standard data | Normalization techniques | Fusing data. A word about a priori and a posteriori feature importances.

Last update: 2025-02-19
Started: 2024-09-11

Kernel PCA and Coinertia
Purpose of this document | Introduction | Matrix decomposition | Eigendecomposition | Singular Value Decomposition (SVD) | Principal Components Analysis (PCA) | Kernel PCA | Linear kernel | Rest of kernels | Advantages of kernel PCA | kerntools implementation | Coinertia analysis using kernels | Kernel approach

Last update: 2024-10-25
Started: 2024-10-25

Readme and manuals

Help Manual

Help pageTopics
AccuracyAcc
Accuracy of a random modelAcc_rnd
Aggregate importancesaggregate_imp
Confidence Interval using BootstrapBoots_CI
Kernels for count dataBrayCurtis Ruzicka
Centering a kernel matrixcenterK
Centering a squared matrix by row or columncenterX
Chi-squared kernelChi2
Compositional kernelsAitchison cLinear
Cosine normalization of a kernel matrixcosNorm
Cosine normalization of a matrixcosnormX
This function deletes those columns and/or rows in a matrix/data.frame that only contain 0s.desparsify
Kernels for categorical variablesDirac
Convert categorical data to dummies.dummy_data
Levels per factor variabledummy_var
Gamma hyperparameter estimation (RBF kernel)estimate_gamma
F1 scoreF1
Frobenius kernelFrobenius
Frobenius normalizationfrobNorm
Kernel matrix heatmapheatK
Kernel matrix histogramhistK
Kernels for setsIntersect Jaccard
Kendall's tau kernelKendall
Kernel PCAkPCA
Plot the original variables' contribution to a PCA plotkPCA_arrows
Contributions of the variables to the Principal Components ("loadings")kPCA_imp
Kernel-target alignmentKTA
Laplacian kernelLaplace
Linear kernelLinear
Minmax normalizationminmax
Multiple Kernel (Matrices) CombinationMKC
NMSE (Normalized Mean Squared Error)nmse
Confidence Interval using Normal ApproximationNormal_CI
Importance barplotplotImp
Precision or PPVPrec
Procrustes AnalysisProcrustes
Gaussian RBF (Radial Basis Function) kernelRBF
Recall or Sensitivity or TPRRec
Showdatashowdata
Kernel matrix similaritysimK
Soil microbiota (raw counts)soil
Specificity or TNRSpe
Spectrum kernelSpectrum
SVM feature importancesvm_imp
Total Sum ScalingTSS
Von Neumann entropyvonNeumann