Create a new instance of the dataset, with the given name. If a Dataset with this name already exists, an exception will be thrown (see link::Classes/FluidDataSet#at:: to access an extant Dataset).
Create a new instance of the DataSet, with the given name. If a DataSet with this name already exists, an exception will be thrown (see link::Classes/FluidDataSet#at:: to access an existant DataSet).
ARGUMENT:: server
ARGUMENT:: server
The link::Classes/Server:: on which to create the data set.
The link::Classes/Server:: on which to create the data set.
ARGUMENT:: name
ARGUMENT:: name
A symbol with the name of the dataset.
A symbol with the name of the DataSet.
returns:: The new instance
returns:: The new instance
@ -24,9 +24,9 @@ METHOD:: at
Retrieves a cached instance of a FluidDataSet with the given name, or returns nil if no such object exists.
Retrieves a cached instance of a FluidDataSet with the given name, or returns nil if no such object exists.
ARGUMENT:: server
ARGUMENT:: server
The server associated with this dataset instance.
The server associated with this DataSet instance.
ARGUMENT:: name
ARGUMENT:: name
The name of the Dataset to retrieve from the cache.
The name of the DataSet to retrieve from the cache.
INSTANCEMETHODS::
INSTANCEMETHODS::
@ -34,8 +34,8 @@ INSTANCEMETHODS::
PRIVATE:: init,id,cache
PRIVATE:: init,id,cache
METHOD:: addPoint
METHOD:: addPoint
Add a new point to the data set. The dimensionality of the dataset is governed by the size of the first point added.
Add a new point to the data set. The dimensionality of the DataSet is governed by the size of the first point added.
Will report an error if the label already exists, or if the size of the data does not match the dimensionality of the dataset.
Will report an error if the label already exists, or if the size of the data does not match the dimensionality of the DataSet.
ARGUMENT:: label
ARGUMENT:: label
A symbol or string with the label for the new point.
A symbol or string with the label for the new point.
ARGUMENT:: buffer
ARGUMENT:: buffer
@ -44,7 +44,7 @@ ARGUMENT:: action
A function to run when the point has been added.
A function to run when the point has been added.
METHOD:: updatePoint
METHOD:: updatePoint
Update an existing label's data. Will report an error if the label doesn't exist, or if the size of the data does not match the given dimensionality of the dataset.
Update an existing label's data. Will report an error if the label doesn't exist, or if the size of the data does not match the given dimensionality of the DataSet.
METHOD:: getPoint
METHOD:: getPoint
Retrieve a point from the data set into a link::Classes/Buffer::. Will report an error if the label or buffer doesn't exist.
Retrieve a point from the data set into a link::Classes/Buffer::. Will report an error if the label or buffer doesn't exist.
@ -59,7 +59,7 @@ METHOD:: free
Destroy the object on the server.
Destroy the object on the server.
METHOD:: print
METHOD:: print
Post an abbreviated content of the dataset in the window by default, but you can supply a custom action instead.
Post an abbreviated content of the DataSet in the window by default, but you can supply a custom action instead.
METHOD:: synth
METHOD:: synth
The internal synth the object uses to communicate with the server
The internal synth the object uses to communicate with the server
Identify code::k:: clusters in a link::Classes/FluidDataSet::
Identify code::k:: clusters in a link::Classes/FluidDataSet::
ARGUMENT:: dataset
ARGUMENT:: dataSet
A link::Classes/FluidDataSet:: of data points.
A link::Classes/FluidDataSet:: of data points.
ARGUMENT:: action
ARGUMENT:: action
A function to run when fitting is complete, taking as its argument an array with the number of data points for each cluster.
A function to run when fitting is complete, taking as its argument an array with the number of data points for each cluster.
METHOD:: predict
METHOD:: predict
Given a trained object, return the cluster ID for each data point in a dataset to a label set.
Given a trained object, return the cluster ID for each data point in a DataSet to a label set.
ARGUMENT:: dataset
ARGUMENT:: dataSet
a link::Classes/FluidDataSet:: containing the data to predict.
a link::Classes/FluidDataSet:: containing the data to predict.
ARGUMENT:: labelset
ARGUMENT:: labelSet
a link::Classes/FluidLabelSet:: to retrieve the predicted clusters.
a link::Classes/FluidLabelSet:: to retrieve the predicted clusters.
ARGUMENT:: action
ARGUMENT:: action
A function to run when the server responds.
A function to run when the server responds.
METHOD:: fitPredict
METHOD:: fitPredict
Run link::Classes/FluidKMeans#*fit:: and link::Classes/FluidKMeans#*predict:: in a single pass: i.e. train the model on the incoming link::Classes/FluidDataSet:: and then return the learned clustering to the passed link::Classes/FluidLabelSet::
Run link::Classes/FluidKMeans#*fit:: and link::Classes/FluidKMeans#*predict:: in a single pass: i.e. train the model on the incoming link::Classes/FluidDataSet:: and then return the learned clustering to the passed link::Classes/FluidLabelSet::
ARGUMENT:: dataset
ARGUMENT:: dataSet
a link::Classes/FluidDataSet:: containing the data to fit and predict.
a link::Classes/FluidDataSet:: containing the data to fit and predict.
ARGUMENT:: labelset
ARGUMENT:: labelSet
a link::Classes/FluidLabelSet:: to retrieve the predicted clusters.
a link::Classes/FluidLabelSet:: to retrieve the predicted clusters.
ARGUMENT:: action
ARGUMENT:: action
A function to run when the server responds
A function to run when the server responds
@ -58,9 +58,9 @@ A function to run when the server responds, taking the ID of the cluster as its
METHOD:: predict
METHOD:: predict
Report cluster assignments for previously unseen data.
Report cluster assignments for previously unseen data.
ARGUMENT:: dataset
ARGUMENT:: dataSet
A link::Classes/FluidDataSet:: of data points.
A link::Classes/FluidDataSet:: of data points.
ARGUMENT:: labelset
ARGUMENT:: labelSet
A link::Classes/FluidLabelSet:: to contain assignments.
A link::Classes/FluidLabelSet:: to contain assignments.
ARGUMENT:: action
ARGUMENT:: action
A function to run when complete, taking an array of the counts for each category as its argument.
A function to run when complete, taking an array of the counts for each category as its argument.
Compute the normalization factors from a link::Classes/FluidDataSet:: for later.
Compute the normalization factors from a link::Classes/FluidDataSet:: for later.
ARGUMENT:: dataset
ARGUMENT:: dataSet
The link::Classes/FluidDataSet:: to normalize
The link::Classes/FluidDataSet:: to normalize
ARGUMENT:: action
ARGUMENT:: action
A function to run when processing is complete
A function to run when processing is complete
METHOD:: transform
METHOD:: transform
Normalize a link::Classes/FluidDataSet:: into another link::Classes/FluidDataSet::, using the learned extrema from a previous call to link::Classes/FluidNormalize#fit::
Normalize a link::Classes/FluidDataSet:: into another link::Classes/FluidDataSet::, using the learned extrema from a previous call to link::Classes/FluidNormalize#fit::
ARGUMENT:: sourceDataset
ARGUMENT:: sourceDataSet
The link::Classes/FluidDataSet:: to normalize
The link::Classes/FluidDataSet:: to normalize
ARGUMENT:: destDataset
ARGUMENT:: destDataSet
The link::Classes/FluidDataSet:: to populate with normalized data
The link::Classes/FluidDataSet:: to populate with normalized data
ARGUMENT:: action
ARGUMENT:: action
A function to run when processing is complete
A function to run when processing is complete
@ -43,9 +43,9 @@ A function to run when processing is complete
METHOD:: fitTransform
METHOD:: fitTransform
Normalize a link::Classes/FluidDataSet::
Normalize a link::Classes/FluidDataSet::
ARGUMENT:: sourceDataset
ARGUMENT:: sourceDataSet
The link::Classes/FluidDataSet:: to normalize
The link::Classes/FluidDataSet:: to normalize
ARGUMENT:: destDataset
ARGUMENT:: destDataSet
The link::Classes/FluidDataSet:: to populate with normalized data
The link::Classes/FluidDataSet:: to populate with normalized data