Package: MagmaClustR 1.2.1

MagmaClustR: Clustering and Prediction using Multi-Task Gaussian Processes with Common Mean

An implementation for the multi-task Gaussian processes with common mean framework. Two main algorithms, called 'Magma' and 'MagmaClust', are available to perform predictions for supervised learning problems, in particular for time series or any functional/continuous data applications. The corresponding articles has been respectively proposed by Arthur Leroy, Pierre Latouche, Benjamin Guedj and Servane Gey (2022) <doi:10.1007/s10994-022-06172-1>, and Arthur Leroy, Pierre Latouche, Benjamin Guedj and Servane Gey (2023) <https://jmlr.org/papers/v24/20-1321.html>. Theses approaches leverage the learning of cluster-specific mean processes, which are common across similar tasks, to provide enhanced prediction performances (even far from data) at a linear computational cost (in the number of tasks). 'MagmaClust' is a generalisation of 'Magma' where the tasks are simultaneously clustered into groups, each being associated to a specific mean process. User-oriented functions in the package are decomposed into training, prediction and plotting functions. Some basic features (classic kernels, training, prediction) of standard Gaussian processes are also implemented.

Authors:Arthur Leroy [aut, cre], Pierre Latouche [aut], Alexia Grenouillat [ctb], Hugo Lelievre [ctb]

MagmaClustR_1.2.1.tar.gz
MagmaClustR_1.2.1.zip(r-4.7-x86_64)MagmaClustR_1.2.1.zip(r-4.7-arm64)MagmaClustR_1.2.1.zip(r-4.6-x86_64)MagmaClustR_1.2.1.zip(r-4.6-arm64)MagmaClustR_1.2.1.zip(r-4.5-x86_64)
MagmaClustR_1.2.1.tgz(r-4.6-x86_64)MagmaClustR_1.2.1.tgz(r-4.6-arm64)MagmaClustR_1.2.1.tgz(r-4.5-x86_64)MagmaClustR_1.2.1.tgz(r-4.5-arm64)
MagmaClustR_1.2.1.tar.gz(r-4.7-arm64)MagmaClustR_1.2.1.tar.gz(r-4.7-x86_64)MagmaClustR_1.2.1.tar.gz(r-4.6-arm64)MagmaClustR_1.2.1.tar.gz(r-4.6-x86_64)
MagmaClustR_1.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
MagmaClustR/json (API)

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

Bug tracker:https://github.com/arthurleroy/magmaclustr/issues

Pkgdown/docs site:https://arthurleroy.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • swimmers - French swimmers performances data on 100m freestyle events
  • weight - Weight follow-up data of children in Singapore

On CRAN:

Conda:

gaussian-processesmulti-task-learningmulti-task-predictioncpp

5.66 score 21 stars 22 scripts 348 downloads 38 exports 34 dependencies

Last updated from:4aa3d4b047. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK161
linux-devel-x86_64OK186
source / vignettesOK210
linux-release-arm64OK146
linux-release-x86_64OK171
macos-release-arm64OK211
macos-release-x86_64OK644
macos-oldrel-arm64OK159
macos-oldrel-x86_64OK281
windows-devel-arm64OK402
windows-devel-x86_64OK164
windows-release-arm64OK339
windows-release-x86_64OK144
windows-oldrel-x86_64OK125
wasm-releaseOK126

Exports:%>%convolution_kerneldata_allocate_clusterexpand_grid_inputsformat_to_legacyformat_to_newhphyperposteriorhyperposterior_clustkern_to_covkern_to_invlist_kern_to_covlist_kern_to_invplot_clustersplot_dbplot_gifplot_gpplot_magmaplot_magmaclustplot_samplespred_gifpred_gppred_magmapred_magmaclustproba_max_clusterregularise_dataregularize_datasample_gpsample_magmasample_magmaclustselect_nb_clustersimu_datasimu_dbtrain_gptrain_gp_clusttrain_magmatrain_magmaclusttrain_shared_gp

Dependencies:backportsbroomclicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrmvtnormpillarpkgconfigplyrpurrrR6RColorBrewerRcpprlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Compute the Covariance Matrix for a Multi-Output GP via Convolutionconvolution_kernel
Allocate training data into the most probable clusterdata_allocate_cluster
Expand a grid of inputsexpand_grid_inputs
Convert data to the legacy single-output formatformat_to_legacy
Convert an internal-format object back to the new long-format conventionformat_to_new
Generate initial hyper-parameters for GP and multi-output kernelshp
Compute the hyper-posterior distribution in Magmahyperposterior
Compute the hyper-posterior distribution for each cluster in MagmaClusthyperposterior_clust
MagmaClustR : Clustering and Prediction using Multi-Task Gaussian ProcessesMagmaClustR-package MagmaClustR
Plot time series grouped by clusterplot_clusters
Plot raw dataplot_db
Create a GIF of Magma or GP predictionsplot_gif
Plot Magma or GP predictionsplot_gp plot_magma
Plot MagmaClust predictionsplot_magmaclust
Display realisations from a (mixture of) GP predictionplot_samples
Magma prediction for ploting GIFspred_gif
Gaussian Process predictionpred_gp
Magma predictionpred_magma
MagmaClust predictionpred_magmaclust
Indicates the most probable clusterproba_max_cluster
Regularise a grid of inputs in a datasetregularise_data regularize_data
Draw samples from a posterior GP/Magma distributionsample_gp sample_magma
Draw samples from a MagmaClust posterior distributionsample_magmaclust
Select the optimal number of clustersselect_nb_cluster
Simulate a dataset tailored for MagmaClustRsimu_data simu_db
French swimmers performances data on 100m freestyle eventsswimmers
Learning hyper-parameters of a Gaussian Processtrain_gp
Prediction in MagmaClust: learning new HPs and mixture probabilitiestrain_gp_clust
Training Magma with an EM algorithmtrain_magma
Training MagmaClust with a Variational EM algorithmtrain_magmaclust
Learning shared hyper-parameters of a Gaussian Process across all individualstrain_shared_gp
Weight follow-up data of children in Singaporeweight