Options and defaults#
Every option of the orderers and of autoencoder training, with its default. Pass options as keywords. The API Reference has the full signatures, and the how-to guides (How-to guides) show how to choose values.
LocalFlowOrderer#
LocalFlowOrderer: the local-flow walk
(Use the local-flow walk).
Option |
Default |
Meaning |
|---|---|---|
|
|
the metric’s scale: a length for the default metric, a time for |
|
|
the distance metric and neighbour-query strategy, see below |
|
|
index of the first sample; |
|
|
|
|
|
stop when the next step would be longer than this, in position |
|
|
a |
|
|
the most samples the walk visits |
|
|
what to do with NaN inputs |
WalkConfig#
WalkConfig: the walk’s metric and query strategy.
Option |
Default |
Meaning |
|---|---|---|
|
|
how candidate points are scored (The local-flow walk) |
|
|
which candidates are scored: all of them, or the |
MSTOrderer#
MSTOrderer: the minimum-spanning-tree backbone
(Choose an orderer). The default pipeline uses jump_cap=inf,
velocity_factor=30.0, orient_by_velocity=True, on_disconnected="connect" and
nan_policy="omit" instead of the defaults below.
Option |
Default |
Meaning |
|---|---|---|
|
|
neighbours each sample links to |
|
|
cut edges longer than this, in position (in the unit system’s length unit for Quantities) |
|
|
weight of the velocity-alignment penalty added to edge lengths, in position |
|
|
the same penalty in units of the median neighbour distance |
|
|
drop edges whose velocity cosine is below this |
|
|
flip the ordering so \(\gamma\) increases along the mean velocity |
|
|
for a disconnected graph: |
|
|
clip edges whose length is an outlier at this many sigma |
|
|
most rounds of edge clipping |
|
|
the nearest-neighbour backend; |
|
|
what to do with NaN inputs |
RidgeOrderer#
RidgeOrderer: a backbone along the ridge of the
weighted sample density (Choose an orderer). It does not use
velocities, and it runs on the host, so it can’t be traced under jit.
Option |
Default |
Meaning |
|---|---|---|
|
|
width of the Gaussian kernel for the density, in position, roughly the stream’s half-width (in the unit system’s length unit for Quantities); |
|
|
neighbours each sample links to in the graph the backbone runs on |
|
|
density, as a fraction of its peak, above which a sample can be an end of the backbone |
|
|
cut the backbone where the density along it falls below this fraction of its median |
SOMOrderer#
SOMOrderer: the self-organizing map
(Refine an ordering with a self-organizing map). The default pipeline uses n_prototypes=15.
Option |
Default |
Meaning |
|---|---|---|
|
|
lattice points |
|
|
|
|
|
|
|
|
training epochs |
|
|
starting neighbourhood width in lattice units; |
|
|
final neighbourhood width in lattice units |
|
|
backbone samples per lattice segment |
|
|
flip the ordering so \(\gamma\) increases along the mean velocity |
|
|
a |
|
|
|
SOMMixture#
SOMMixture: outlier rejection for the SOM, a curve
or background mixture (Refine an ordering with a self-organizing map).
Option |
Default |
Meaning |
|---|---|---|
|
|
density of the flat background, per unit position volume; |
|
|
scale each side of that bounding box by this; raise it when the data do not fill the field |
fit_track#
fit_track(): order, then train an autoencoder, in one call
(Fill gaps and fit a track with the autoencoder).
Option |
Default |
Meaning |
|---|---|---|
|
required |
random key, split for the model and for training |
|
|
passed to the default pipeline |
|
|
per-sample weights, passed to the default pipeline and on to training |
|
|
SOM lattice points; with fewer samples the SOM stage is skipped |
|
|
a |
|
|
a |
bootstrap_track#
bootstrap_track(): a fit and fits to bootstrap resamples, for the
track’s uncertainty (Put an uncertainty band on the track). It takes every option of
fit_track and passes it to each fit.
Option |
Default |
Meaning |
|---|---|---|
|
required |
random key, split for the reference fit and for each member |
|
|
number of resamples; each costs one |
|
|
per-sample weights, resampled with the samples |
TrackEnsemble, which it returns:
Method |
Option |
Default |
Meaning |
|---|---|---|---|
|
|
|
points per member track searched for the nearest one |
|
|
|
fraction of members inside the tube |
TrainingConfig#
TrainingConfig: autoencoder training
(Fill gaps and fit a track with the autoencoder). Phase 1 trains the encoder, phase 2 the decoder,
phase 3 both (The autoencoder).
Option |
Default |
Meaning |
|---|---|---|
|
the library’s default Optax optimizer |
Optax optimizer for all phases |
|
|
samples per batch |
|
|
show a progress bar |
|
|
membership probability above which a sample counts as a member |
|
|
phase 1 epochs |
|
|
weight of the membership loss terms |
|
|
phase 2 epochs |
|
|
phase 3 epochs |
|
|
weight of position reconstruction in phase 3 |
|
|
|
|
|
weight samples by inverse density: |
|
|
freeze the encoder during phase 3; |
|
|
a |
|
|
how |
MixtureMembershipConfig#
MixtureMembershipConfig: the stream-plus-background
mixture model (Reject outliers with the mixture model).
Option |
Default |
Meaning |
|---|---|---|
|
|
starting stream half-width, in the normalised coordinates the networks see |
|
|
floor on the width |
|
|
|
|
|
fraction of training spent ramping the membership term in |
|
|
the background density \(\rho_{\mathrm{bg}}\); |
|
|
inflation of that extent when |
|
|
width of the network that predicts the stream width |
|
|
depth of that network |
|
|
weight of the velocity-alignment term, reweighted by membership; 0 turns it off |