| Portability | non-portable (requires STM) |
|---|---|
| Stability | experimental |
| Maintainer | gnn -dot- code -at- gmail -dot- com |
Data.Datamining.Clustering.Gsom.Parallel
Description
This module contains the necessary modifications of some functions to parallelise a phase of the GSOM Algorithm by using multiple threads.
Documentation
phase :: Int -> Phase -> Lattice -> Inputs -> IO LatticeSource
will update the given phase n parameters inputslattice by
executing one phase of the GSOM algorithm with the given inputs
and parameters using n threads.
run :: Int -> Phases -> Lattice -> Inputs -> IO LatticeSource
Since a complete run of the GSOM algorithm means running a number
of this is usually the main function used. Phasesrun n phases
lattice inputs runs the GSOM algorithm by running the phases in
the order specified, each time making passes over inputs and using
the produced as an argument to the next phase. The
phases are run using Latticen worker threads. The initial ,
Latticelattice may be constructed with the and the
newRandom functions.
newCentered