Algorithm-LinearManifoldDataClusterer
view release on metacpan or search on metacpan
lib/Algorithm/LinearManifoldDataClusterer.pm view on Meta::CPAN
$clusterer->display_reconstruction_errors_as_a_function_of_iterations();
# When your data is 3-dimensional and when the clusters reside on a surface that
# is more or less spherical, you can visualize the clusters by calling
$clusterer->visualize_clusters_on_sphere("final clustering", $clusters);
# where the first argument is a label to be displayed in the 3D plot and the
# second argument the value returned by calling linear_manifold_clusterer().
# SYNTHETIC DATA GENERATION:
# The module includes an embedded class, DataGenerator, for generating synthetic
# three-dimensional data that can be used to experiment with the clustering code.
# The synthetic data, written out to a CSV file, consists of Gaussian clusters on
# the surface of a sphere. You can control the number of clusters, the width of
# each cluster, and the number of samples in the clusters by giving appropriate
# values to the constructor parameters as shown below:
use strict;
use Algorithm::LinearManifoldDataClusterer;
lib/Algorithm/LinearManifoldDataClusterer.pm view on Meta::CPAN
my $clusters = $clusterer->auto_retry_clusterer();
As mentioned earlier, the module is programmed in such a way that it is more likely
to fail than to give you a wrong answer. If manually trying the clusterer repeatedly
on a data file is frustrating, you can use C<auto_retry_clusterer()> to automatically
make repeated attempts for you. See the script C<example4.pl> for how you can use
C<auto_retry_clusterer()> in your own code.
=back
=head1 GENERATING SYNTHETIC DATA FOR EXPERIMENTING WITH THE CLUSTERER
The module file also contains a class named C<DataGenerator> for generating synthetic
data for experimenting with linear-manifold based clustering. At this time, only
3-dimensional data that resides in the form of Gaussian clusters on the surface of a
sphere is generated. The generated data is placed in a CSV file. You construct an
instance of the C<DataGenerator> class by a call like:
=over 4
=item B<new():>
( run in 0.498 second using v1.01-cache-2.11-cpan-140bd7fdf52 )