EnglishFrenchSpanish

Ad


OnWorks favicon

mlpack_perceptron - Online in the Cloud

Run mlpack_perceptron in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command mlpack_perceptron that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


mlpack_perceptron - perceptron

SYNOPSIS


mlpack_perceptron [-h] [-v] [-m string] [-l string] [-n int] [-o string] [-M string] [-T string] [-t string] -V

DESCRIPTION


This program implements a perceptron, which is a single level neural network. The
perceptron makes its predictions based on a linear predictor function combining a set of
weights with the feature vector. The perceptron learning rule is able to converge, given
enough iterations using the --max_iterations (-n) parameter, if the data supplied is
linearly separable. The perceptron is parameterized by a matrix of weight vectors that
denote the numerical weights of the neural network.

This program allows loading a perceptron from a model (-m) or training a perceptron given
training data (-t), or both those things at once. In addition, this program allows
classification on a test dataset (-T) and will save the classification results to the
given output file (-o). The perceptron model itself may be saved with a file specified
using the -M option.

The training data given with the -t option should have class labels as its last dimension
(so, if the training data is in CSV format, labels should be the last column).
Alternately, the -l (--labels_file) option may be used to specify a separate file of
labels.

All these options make it easy to train a perceptron, and then re-use that perceptron for
later classification. The invocation below trains a perceptron on 'training_data.csv' (and
'training_labels.csv)' and saves the model to ’perceptron.xml'.

$ perceptron -t training_data.csv -l training_labels.csv -m perceptron.csv

Then, this model can be re-used for classification on 'test_data.csv'. The example below
does precisely that, saving the predicted classes to ’predictions.csv'.

$ perceptron -i perceptron.xml -T test_data.csv -o predictions.csv

Note that all of the options may be specified at once: predictions may be calculated right
after training a model, and model training can occur even if an existing perceptron model
is passed with -m (--input_model_file). However, note that the number of classes and the
dimensionality of all data must match. So you cannot pass a perceptron model trained on 2
classes and then re-train with a 4-class dataset. Similarly, attempting classification on
a 3-dimensional dataset with a perceptron that has been trained on 8 dimensions will cause
an error.

OPTIONS


--help (-h)
Default help info.

--info [string]
Get help on a specific module or option. Default value ''. --input_model_file
(-m) [string] File containing input perceptron model. Default value ''.

--labels_file (-l) [string]
A file containing labels for the training set. Default value ''.

--max_iterations (-n) [int]
The maximum number of iterations the perceptron is to be run Default value 1000.

--output_file (-o) [string]
The file in which the predicted labels for the test set will be written. Default
value ’output.csv'. --output_model_file (-M) [string] File to save trained
perceptron model to. Default value ''.

--test_file (-T) [string]
A file containing the test set. Default value ’'. --training_file (-t) [string] A
file containing the training set. Default value ''.

--verbose (-v)
Display informational messages and the full list of parameters and timers at the
end of execution.

--version (-V)
Display the version of mlpack.

ADDITIONAL INFORMATION


ADDITIONAL INFORMATION


For further information, including relevant papers, citations, and theory, For further
information, including relevant papers, citations, and theory, consult the documentation
found at http://www.mlpack.org or included with your consult the documentation found at
http://www.mlpack.org or included with your DISTRIBUTION OF MLPACK. DISTRIBUTION OF
MLPACK.

mlpack_perceptron(1)

Use mlpack_perceptron online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Phaser
    Phaser
    Phaser is a fast, free, and fun open
    source HTML5 game framework that offers
    WebGL and Canvas rendering across
    desktop and mobile web browsers. Games
    can be co...
    Download Phaser
  • 2
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 3
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 4
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 5
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 6
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • More »

Linux commands

  • 1
    abidiff
    abidiff
    abidiff - compare ABIs of ELF files
    abidiff compares the Application Binary
    Interfaces (ABI) of two shared libraries
    in ELF format. It emits a meaningful
    repor...
    Run abidiff
  • 2
    abidw
    abidw
    abidw - serialize the ABI of an ELF
    file abidw reads a shared library in ELF
    format and emits an XML representation
    of its ABI to standard output. The
    emitted ...
    Run abidw
  • 3
    copac2xml
    copac2xml
    bibutils - bibliography conversion
    utilities ...
    Run copac2xml
  • 4
    copt
    copt
    copt - peephole optimizer SYSNOPIS:
    copt file.. DESCRIPTION: copt is a
    general-purpose peephole optimizer. It
    reads code from its standard input and
    writes an ...
    Run copt
  • 5
    gather_stx_titles
    gather_stx_titles
    gather_stx_titles - gather title
    declarations from Stx documents ...
    Run gather_stx_titles
  • 6
    gatling-bench
    gatling-bench
    bench - http benchmark ...
    Run gatling-bench
  • More »

Ad