moscot.base.output.BaseDiscreteSolverOutput¶
- class moscot.base.output.BaseDiscreteSolverOutput[source]¶
Base class for all discrete solver outputs.
Methods
as_linear_operator
([scale_by_marginals])Transform
transport_matrix
into a linear operator.chain
(outputs[, scale_by_marginals])Chain subsequent applications of
transport_matrix
.pull
(x[, scale_by_marginals])Pull mass through the
transport_matrix
.push
(x[, scale_by_marginals])Push mass through the
transport_matrix
.sparsify
(mode[, value, batch_size, ...])Sparsify the
transport_matrix
.to
([device])Transfer self to another compute device.
Attributes
Marginals of the source distribution.
Marginals of the target distribution.
Whether the solver converged.
Regularized OT cost.
Underlying data type.
Whether the output is a solution to a linear problem.
Whether the
transport_matrix
is low-rank.Dual potentials \(f\) and \(g\).
Rank of the
transport_matrix
.Shape of the
transport_matrix
.Transport matrix of shape
[n, m]
.