The ordering result#
Every orderer returns an OrderingResult. The
local-flow walk returns WalkLocalFlowResult, a subclass with the same fields.
Fields#
Field |
Contents |
|---|---|
|
the input positions, in input order (not reordered) |
|
the input velocities, in input order |
|
sample indices in visit order, padded with |
|
the range of \(\gamma\) that calling the result accepts; |
|
an ordered polyline that calling the result interpolates along, or |
|
the number of valid leading vertices when |
|
arc length along the curve for each sample, in input order, with |
|
the per-sample weights passed to |
|
whether the orderer’s metric uses velocity |
In indices, the position in the array is the step along the ordering and the value
is the original sample index:
indices = [3, 7, 1, 5, -1, -1]
# ^ first is sample 3
# ^ second is sample 7, and so on
# ^ two samples were not visited
Accessors#
Accessor |
Returns |
|---|---|
|
the visited indices in order: |
|
a boolean mask over the samples, in input order |
|
how many samples were and were not visited |
|
whether every sample was visited |
|
the indices of the samples not visited |
|
positions and velocities reordered along the ordering |
|
positions interpolated at \(\gamma\) in |
order_w() also returns the positions and velocities in order.
The autoencoder’s result#
train_autoencoder() and fit_track()
return an AutoencoderResult. It has positions,
velocities and gamma_range as above, plus:
Field |
Contents |
|---|---|
|
the indices of the samples whose membership probability is at least |
|
\(\gamma\) for every sample |
|
the encoder’s membership probability for every sample |
|
the trained network |
|
the range of \(\gamma\) the track covers, for drawing it. By default each end is where the weighted number of members per unit length along the track falls below half its value just inside; with |
Calling it, result(gamma), evaluates the fitted track (Fill gaps and fit a track with the autoencoder).