Skip to content

MagmaClustR

1.2.1Package record

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

0packages depend
3.3Kdownloads / year
13.9%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.2.1

Major

  • Make 'get_full_cov = T' the default option when using pred_magmaclust()

Minor

  • Remove the useless messages when using samples=T in plotting functions
  • Create an error when users try train_magmaclust(nb_cluster = 1)
  • Make 'samples = T' the default plot when using prediction functions
  • Add mention of the 'hp()' function to the documentation
  • Fix Warning message when plotting clusters with exact same posterior probability
  • Display plots for the generic (no data provided) prediction that are condistent with classic ones
  • Disable the symmetry check when generating posterior samples for predictions

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.2 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
Show 4 earlier changesHide 4 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-04-22
  • ERROR13 OK, 1 ERROR2026-04-18
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.2.1
READMEYes · 522 wordsVignettes· In the repository, left out of the releaseNEWSYes · 100% structured · mentions 1.2.1Citation fileNoWebsiteYes · pkgdown

The repository also keeps web-only articles.

Help pages
64 (37 internal)includes a package overview page
Examples that run
100%60 run in a plain check
Exported functions with examples
96%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

3.3K
CRAN downloads in the past year
Rank #12,242 · ~9/day · ~273/mo
Daily download trend is not available in this view yet.
32430 days
89190 days
3.3K1 year
Compare downloads with other packages →
Also on354 r2u1 autocran

Repository

21Stars
7Forks
0Open issues
1Open PRs
7Releases
179Commits
3Commit identities
r-packagergaussian-processesmulti-task-predictionmulti-task-learning
179 commits · Last activity 2026-08-03 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
50%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-07-27 · 172026-07-07 · 21
PracticesBeta

10 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/arthurleroy/magmaclustr on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-06-10 · The repository has a site deploy workflow

pkgdown site last built 2026-06-10

Coverage (1)
Coverage reporting
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2026-06-19
    Pull request: opened by its own account
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
22 external dependencies (excludes base and recommended)

Installing MagmaClustR adds 34 packages (19 with compiled code, 32 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, Rcpp 1.8 MB.

Depends (1)
R >= 2.10
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (5)
Author, Maintainer since 1.0.0 (2022)
Contributor · added in 1.1.1
Contributor · added in 1.1.0
Contributor
Listed in earlier versions (1)
Alexia Grenouilla
no longer listed · 1.1.0
Releases (7)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.2.1Latest
    record
    2024-06-28 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.2.0
    record
    2024-03-21 · diff ↗ ·
    added 4 exports
    plot_magma, plot_samples, sample_magma, sample_magmaclust
  • 1.1.2
    record
    2023-05-23 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • unarchivedReturned to CRAN
    2023-01-17
  • 1.1.1
    record
    2023-01-17 · diff ↗
  • archivedRemoved from CRAN
    2022-11-17
    issues were not corrected in time
  • 1.1.0
    record
    2022-11-01 · diff ↗ ·
    added 3 exports
    expand_grid_inputs, regularise_data, regularize_data
  • 1.0.1
    record
    2022-08-29 · diff ↗
  • 1.0.0
    record
    2022-06-06
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-06-06
Total releases
7 / 4 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 2.10
Bundled data
215 KB / 2 files
Download size
1.6 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("MagmaClustR")
Leroy, A., Grenouillat, A., Latouche, P., Lelievre, H., & Pathé, P. (2024). MagmaClustR: Clustering and Prediction using Multi-Task Gaussian Processes with Common Mean (Version 1.2.1) [Computer software]. https://doi.org/10.32614/CRAN.package.MagmaClustR

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for MagmaClustR version 1.2.1 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy