Based on the same vectorization and dimensionality reduction as the steps vectorize_dataset and embed_dataset. The only difference being that the number of dimensions (output columns) is fixed to 2 (corresponding to x and y positions).

algorithm
string
default: "umap"

Algorithm. The name of a supported dimensionality reduction algorithm.

Values must be one of the following:

  • umap
encode_features
boolean
default: "true"

Toggle encoding of feature columns. When enabled, Graphext will auto-convert any column types to the numeric type before (optionally) reducing the data’s dimensionality. How this conversion is done can be configured using the feature_encoder option below.

If disabled, the dimensionality reduction algorithm applied in this step will assume that input data is already numerical and doesn’t contain any missing values.
feature_encoder
[null, object]

Configures encoding of feature columns. By default (null), Graphext chooses automatically how to convert any column types the model may not understand natively to a numeric type.

A configuration object can be passed instead to overwrite specific parameter values with respect to their default values.

include_text_features
boolean

Whether to include or ignore text columns during the processing of input data. Enabling this will convert texts to their Tf-Idf representation. Each text will be converted to an N-dimensional vector in which each component measures the relative “over-representation” of a specific word (or n-gram) relative to its overall frequency in the whole dataset. This is disabled by default because it will often be better to convert texts explicitly using a previous step, such as embed_text or embed_text_with_model.

weights
[object, null]

Weights used to multiply the normalized columns/features after vectorization. Should be a dictionary/object of {"column_name": weight, ...} items. Will be scaled using the parameters weights_max, and weights_exp before being applied. So only the relative weight of the columns is important here, not their absolute values.

type_weights
[object, null]

Weights used to multiply the normalized columns/features after vectorization. Should be a dictionary/object of "type": weight" items. Will be scaled using the parameters weights_max, and weights_exp before being applied. So only the relative weight of the columns is important here, not their absolute values.

weights_max
number
default: "32"

Maximum weight to scale the normalized columns with.

Values must be in the following range:

0 ≤ weights_max < inf
weights_exp
integer
default: "2"

Weight exponent. Weights will be raised to this power before(!) scaling to weights_max. This allows for a non-linear mapping from input weights to those used eventually to multiply the normalized columns.

n_neighbors
integer
default: "100"

Number of neighbours. Use smaller numbers to concentrate on the local structure in the data, and larger values to focus on the more global structure.

For further details see here.

Values must be in the following range:

1 ≤ n_neighbors < inf
min_dist
number
default: "0.1"

Minimum distance between reduced data points. Controls how tightly UMAP is allowed to pack points together in the reduced space. Smaller values will lead to points more tightly packed together (potentially useful if result is used to cluster the points). Larger values will distribute points with more space between them (which may be desirable for visualization, or to focus more on the global structure of the date).

For further details see here.

Values must be in the following range:

0 ≤ min_dist < inf
n_components
integer
default: "2"

Dimensionality of the reduced data. Fixed at 2 for the purpose of a layout’s x and y coordinates.

Values must be in the following range:

1 ≤ n_components < inf
metric
string
default: "euclidean"

Metric to use for measuring similarity between data points.

Values must be one of the following:

euclidean manhattan chebyshev minkowski canberra braycurtis haversine mahalanobis wminkowski seuclidean cosine correlation hamming jaccard dice russellrao kulsinski rogerstanimoto sokalmichener sokalsneath yule

n_epochs
[integer, null]

Number of training iterations used in optimizing the embedding. Larger values result in more accurate embeddings. If null is specified a value will be selected based on the size of the input dataset (200 for large datasets, 500 for small).

init
string
default: "auto"

How to initialize the low dimensional embedding. When “spectral”, uses a (relatively expensive) spectral embedding. “pca” uses the first n_components from a principal component analysis. “tswspectral” is a cheaper alternative to “spectral”. When “random”, assigns initial embedding positions at random. This uses the least amount of memory and time but may make UMAP slower to converge on the optimal embedding. “auto” selects between “spectral” and “random” automatically depending on the size of the dataset.

Values must be one of the following:

  • spectral
  • pca
  • tswspectral
  • random
  • auto
low_memory
[boolean, string, null]
default: "auto"

Avoid excessive memory use. For some datasets nearest neighbor computations can consume a lot of memory. If you find the step is failing due to memory constraints, consider setting this option to true. This approach is more computationally expensive, but avoids excessive memory use. Setting it to “auto”, will enable this mode automatically depending on the size of the dataset.

Values must be one of the following:

  • True
  • False
  • auto
  • None
target
[string, null]

Target variable (labels) for supervised dimensionality reduction. Name of the column that contains your target values (labels).

target_weight
number
default: "0.5"

Weighting factor between features and target. A value of 0.0 weights entirely on data, and a value of 1.0 weights entirely on target. The default of 0.5 balances the weighting equally between data and target.

densmap
boolean

Try to better preserve local densities in the data. Specifies whether the density-augmented objective of densMAP should be used for optimization. Turning on this option generates an embedding where the local densities are encouraged to be correlated with those in the original space.

dens_lambda
number
default: "2.0"

Strength of local density preservation. Controls the regularization weight of the density correlation term in densMAP. Higher values prioritize density preservation over the UMAP objective, and vice versa for values closer to zero. Setting this parameter to zero is equivalent to running the original UMAP algorithm.

random_state
[integer, null]
default: "42"

A random number to initialize the algorithm for reproducibility.

links_top_n
integer
default: "15"

Maintain links for n nearest neighbours only in graph.

Values must be in the following range:

1 ≤ links_top_n ≤ 15
scale
[null, string, number]
default: "null"

Scaling factor for the coordinates. The maximum (normalized) coordinates in positive and negative X and Y directions. Acts like a zoom, with a scale of 1 corresponding to zooming out to the maximum (maximal space between nodes), and 0 to the densest layout.

If set to "auto", will try to determine an appropriate scale taking into account the number of nodes.

If set to null, only changes calculated coordinates to ensure they’re within the allowed limits (16.000).