Galaxy | Tool Preview

Generalized linear models (version 1.0.11.0)
Advanced Options
Advanced Options 0

*What it does* This module implements a set of linear models for classification and regression such as: SGD classification and regression, Linear and Ridge regression and classification. This wrapper is using sklearn.linear_model module at its core. For information about linear models and their parameter settings please refer to Scikit-learn generalized linear models.

1 - Methods There are two groups of operations available:

1 - Train a model : A training set containing samples and their respective labels (or predicted values) are input. Based on the selected algorithm and options, an estimator object is fit to the data and is returned.

2 - Load a model and predict : An existing model predicts the class labels (or regression values) for a new dataset.

2 - Trainig input When you choose to train a model, you need a features dataset X and a labels set y. This tool expects tabular or sparse data for X and a single column for y (tabular). You can select a subset of columns in a tabular dataset as your features dataset or labels column. Below you find some examples:

Sample tabular features dataset The following training dataset contains 3 feature columns and a column containing class labels. You can simply select the first 3 columns as features and the last column as labels:

4.01163365529    -6.10797684314    8.29829894763     1
10.0788438916    1.59539821454     10.0684278289     0
-5.17607775503   -0.878286135332   6.92941850665     2
4.00975406235    -7.11847496542    9.3802423585      1
4.61204065139    -5.71217537352    9.12509610964     1

Sample sparse features dataset In this case you cannot specifiy a column range.

4 1048577 8738
1 271 0.020833
1 1038 0.02461
2 829017 0.016
2 829437 0.012
2 830752 0.025
3 1047487 0.01
3 1047980 0.02
3 1048475 0.01
4 608 0.016629
4 1651 0.02519
4 4053 0.04223

2 - Trainig output The trained model is generated and output in the form of a binary file.

3 - Prediction input

When you choose to load a model and do prediction, the tool expects an already trained estimator and a tabular dataset as input. The dataset contains new samples which you want to classify or predict regression values for.

The number of feature columns must be the same in training and prediction datasets!

3 - Prediction output The tool predicts the class labels for new samples and adds them as the last column to the prediction dataset. The new dataset then is output as a tabular file. The prediction output format should look like the training dataset.