summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-mlr/package.py
blob: 40fbf3570e489d3dd15d5b3bfb41815db966c0bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class RMlr(RPackage):
    """Machine Learning in R.

    Interface to a large number of classification and regression techniques,
    including machine-readable parameter descriptions. There is also an
    experimental extension for survival analysis, clustering and general,
    example-specific cost-sensitive learning. Generic resampling, including
    cross-validation, bootstrapping and subsampling.  Hyperparameter tuning
    with modern optimization techniques, for single- and multi-objective
    problems. Filter and wrapper methods for feature selection. Extension of
    basic learners with additional operations common in machine learning, also
    allowing for easy nested resampling. Most operations can be
    parallelized."""

    cran = "mlr"

    license("BSD-2-Clause")

    version("2.19.1", sha256="9d52afd54d9d5746e798134d5675818cee65caa53d7eaf317d46ba88d5865202")
    version("2.19.0", sha256="1149c9b453896481c85906045aa82d511d96979ddecbe5a3faf04f9f4a5e6113")
    version("2.18.0", sha256="c2fe74e90ed32e5f4cbb0c09a1742051688d87db2f12dd408ddad0f5afc7f8d3")
    version("2.15.0", sha256="a3c2c2bd65a87d90b5e5e877b1ef8e7712e76b4eb1660d3f69672a1860ca5324")
    version("2.14.0", sha256="1f72184400678386c7c44297c4c92a448b50148de700df5ba0438d4e486e944a")
    version("2.13", sha256="e8729be7acddc1ea124c44f9493a8b903c5f54b97e09c714366553aed733011d")
    version("2.12.1", sha256="9cbb98b82eb493b783fe8808a18d76f32881d941364466ef8829b852fabbc82c")
    version("2.12", sha256="cfe00089ae4cd88c6d03826eda43d4fe29e467e3a7c95d103fafca8308f5c161")

    # There are some potential variants for this.
    # SystemRequirements: gdal (optional), geos (optional), proj (optional),
    # udunits (optional), gsl (optional), gmp (optional), glu (optional), jags
    # (optional)

    depends_on("r@3.0.2:", type=("build", "run"))
    depends_on("r-paramhelpers@1.10:", type=("build", "run"))
    depends_on("r-backports@1.1.0:", type=("build", "run"))
    depends_on("r-bbmisc@1.11:", type=("build", "run"))
    depends_on("r-checkmate@1.8.2:", type=("build", "run"))
    depends_on("r-data-table", type=("build", "run"))
    depends_on("r-data-table@1.12.4:", type=("build", "run"), when="@2.18.0:")
    depends_on("r-ggplot2", type=("build", "run"))
    depends_on("r-parallelmap@1.3:", type=("build", "run"))
    depends_on("r-stringi", type=("build", "run"))
    depends_on("r-survival", type=("build", "run"))
    depends_on("r-xml", type=("build", "run"))