public class LargeViz extends Object implements VisualizationTransform
t-SNE
without requiring any parameter tuning to get good
results. LargeViz is related to t-SNE in how the neighbor graph is
constructed, and the perplexity
parameter for
LargeViz has the same meaning and impact as the perplexity parameter in
t-SNE.Constructor and Description |
---|
LargeViz() |
Modifier and Type | Method and Description |
---|---|
double |
getGamma() |
int |
getNegativeSamples() |
double |
getPerplexity() |
int |
getTargetDimension() |
void |
setDistanceMetricEmbedding(DistanceMetric dm)
Sets the distance metric to use for the embedded space.
|
void |
setDistanceMetricSource(DistanceMetric dm)
Sets the distance metric to use for the original space.
|
void |
setGamma(double gamma)
Gamma controls the negative weight assigned to negative edges in the
optimization problem.
|
void |
setNegativeSamples(int M)
Sets the number of negative neighbor samples to obtain for each data
point.
|
void |
setPerplexity(double perplexity)
Sets the target perplexity of the gaussian used over each data point.
|
boolean |
setTargetDimension(int target)
Sets the target dimension to embed new dataset to.
|
<Type extends DataSet> |
transform(DataSet<Type> d)
Transforms the given data set, returning a dataset of the same type.
|
<Type extends DataSet> |
transform(DataSet<Type> d,
ExecutorService ex)
Transforms the given data set, returning a dataset of the same type.
|
public void setPerplexity(double perplexity)
perplexity
- the quasi number of neighbors to consider for each data pointpublic double getPerplexity()
public void setDistanceMetricSource(DistanceMetric dm)
dm
- the distance metric to usepublic void setDistanceMetricEmbedding(DistanceMetric dm)
dm
- the distance metric to usepublic void setNegativeSamples(int M)
M
- the number of negative samples to use for each updatepublic int getNegativeSamples()
public void setGamma(double gamma)
gamma
- the weight for negative edge samplespublic double getGamma()
public int getTargetDimension()
getTargetDimension
in interface VisualizationTransform
public boolean setTargetDimension(int target)
VisualizationTransform
setTargetDimension
in interface VisualizationTransform
target
- the new target dimension size when VisualizationTransform.transform(jsat.DataSet)
is called.true
if this transform supports that dimension and it was
set, false
if the target dimension is unsupported and the
previous value will be used instead.public <Type extends DataSet> Type transform(DataSet<Type> d)
VisualizationTransform
transform
in interface VisualizationTransform
Type
- the dataset typed
- the data set to transformpublic <Type extends DataSet> Type transform(DataSet<Type> d, ExecutorService ex)
VisualizationTransform
transform
in interface VisualizationTransform
Type
- the dataset typed
- the data set to transformex
- the source of threads for parallel computationCopyright © 2017. All rights reserved.