Puppet Class: profile::product_analytics::machine_learning

Defined in:
modules/profile/manifests/product_analytics/machine_learning.pp

Overview

Provision for machine learning

Install and configure R and install Product Analytics-specific essential R/Python2 packages for machine learning.

filtertags: labs-project-discovery-stats



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
# File 'modules/profile/manifests/product_analytics/machine_learning.pp', line 7

class profile::product_analytics::machine_learning {
    require profile::product_analytics::base

    $python_packages = [
        'python-sklearn',  # Python modules for machine learning and data mining
        'python3-sklearn',
    ]
    require_package($python_packages)

    $r_packages = [
        # Frameworks/utilities:
        'caret',           # Functions for training
        'MLmetrics',       # Evaluation Metrics
        'mlbench',         # Benchmark Problems
        'mlr',             # ML framework/interface similar to caret
        # Supervised learning algorithms:
        'xgboost',         # Extreme Gradient Boosting
        'C50',             # C5.0 Decision Trees and Rule-Based Models
        'klaR',            # Classification and visualization
        'randomForest',    # Random Forests
        'randomForestSRC', # Random Forests for Survival
        'e1071',           # Misc models (e.g. Naive Bayes)
        'neuralnet',       # Neural Networks
        'elasticnet',      # Elastic-Net for Sparse Estimation and Sparse PCA
        'glmnet',          # Lasso and Elastic-Net Regularized Generalized Linear Models
        # Unsupervised learning algorithms:
        'mclust',          # Model-Based Clustering, Classification, and Density Estimation
        'bclust'           # Bayesian Hierarchical Clustering
    ]
    r_lang::cran { $r_packages:
        require => R_lang::Cran['data.table'],
    }

    r_lang::bioc { ['RBGL', 'Rgraphviz']: }

    r_lang::cran { 'bnclassify':
        require => [
            R_lang::Bioc['RBGL'],
            R_lang::Bioc['Rgraphviz']
        ],
    }

}