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], Pierre Pathé [ctb], Alexia Grenouillat [ctb], Hugo Lelievre [ctb]

MagmaClustR_1.2.1.tar.gz
MagmaClustR_1.2.1.zip(r-4.7)MagmaClustR_1.2.1.zip(r-4.6)MagmaClustR_1.2.1.zip(r-4.5)
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.57 score 21 stars 22 scripts 377 downloads 36 exports 37 dependencies

Last updated from:cb7166feb7. Checks:11 WARNING, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64WARNING191
linux-devel-x86_64WARNING160
source / vignettesOK209
linux-release-arm64WARNING199
linux-release-x86_64WARNING189
macos-release-arm64WARNING103
macos-release-x86_64WARNING169
macos-oldrel-arm64WARNING127
macos-oldrel-x86_64WARNING187
windows-develWARNING131
windows-releaseWARNING124
windows-oldrelWARNING123
wasm-releaseOK159

Exports:%>%data_allocate_clusterexpand_grid_inputsformat_longerformat_widerhphyperposteriorhyperposterior_clustkern_to_covkern_to_invlist_kern_to_covlist_kern_to_invplot_clustersplot_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:backportsbroomclicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmvtnormpillarpkgconfigplyrpurrrR6RColorBrewerRcpprlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Compute the Covariance Matrix for a Multi-Output GP via Convolutionconvolution_kernel_KD
Allocate training data into the most probable clusterdata_allocate_cluster
Expand a grid of inputsexpand_grid_inputs
Pivot MagmaClustR data to long formatformat_longer
Pivot MagmaClustR data to wide formatformat_wider
Generate Initial Hyperparameters for GP 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 smoothed curves of 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