shrinkage::PathSolver
Shrinkage for Rust · rust · 0.3.0
Source: src/path.rs
pub trait PathSolver<Problem, P>
Fit an explicit penalty sequence using one prepared problem and workspace.
Associated types
Error
Source: src/path.rs
type Error;
Validation, component, numerical, or backend failure.
Fit
Source: src/path.rs
type Fit;
Owned model at each point.
Methods
solve_path
Source: src/path.rs
fn solve_path(
&self,
problem: &Problem,
penalties: Vec<P>
) -> Result<PathFit<<Self as PathSolver>::Fit, P>, <Self as PathSolver>::Error>
Fit points in caller order, retaining iteration-limit warm starts.
Errors
Returns errors without a partial path. No penalty cloning is required.
Source: src/path/coordinate.rs
impl<D, P, Q> PathSolver<Problem<Box<dyn RuntimeDesign + '_>, D, P>, Q> for shrinkage::CoordinateDescent where D: shrinkage::SmoothDatafit, Q: shrinkage::ProximalPenalty
Source: src/path/proximal.rs
impl<D, P, Q> PathSolver<Problem<Box<dyn RuntimeDesign + '_>, D, P>, Q> for shrinkage::ProximalGradient<Vec<f64>> where D: SmoothDatafit, Q: ProximalPenalty
Source: src/solver/hybrid/path.rs
impl<D: SmoothDatafit, P, Q: shrinkage::ProximalPenalty, V> PathSolver<Problem<Box<dyn RuntimeDesign + '_>, D, P>, Q> for HybridCoordinateDescent<V>
Source: src/solver/hybrid/path.rs
impl<M, D, P, Q, V> PathSolver<Problem<&M, D, P>, Q> for HybridCoordinateDescent<V> where M: RawColumns<f64> + ColumnStats<f64> + MatVecInto<V> + MatTransposeVecInto<V> + ?Sized, D: HybridPathDatafit, Q: ReducedCoordinatePenalty, V: ProximalVector
Source: src/path/proximal.rs
impl<M, D, P, Q, V> PathSolver<Problem<&M, D, P>, Q> for shrinkage::ProximalGradient<V> where M: RawColumns<f64> + ColumnStats<f64> + MatVecInto<V> + MatTransposeVecInto<V> + ?Sized, D: SmoothDatafit, Q: ProximalPenalty, V: ProximalVector
Source: src/path/irls.rs
impl<M, D, P, Q> PathSolver<Problem<&M, D, P>, Q> for shrinkage::Irls where M: RawColumns<f64> + ColumnStats<f64> + ?Sized, D: QuadraticModelDatafit, Q: CoordinatePenalty
Source: src/solver/proximal/multivariate.rs
impl<M, P, Q, V> PathSolver<Problem<&M, MultivariateGaussian<'_>, AxisPenalty<P>>, AxisPenalty<Q>> for shrinkage::ProximalGradient<V> where M: RawColumns<f64> + ColumnStats<f64> + MatVecInto<V> + MatTransposeVecInto<V> + ?Sized, Q: ProximalPenalty, V: ProximalVector
Source: src/path/coordinate.rs
impl<M, P> PathSolver<Problem<&M, Gaussian<'_>, P>, L1> for shrinkage::CoordinateDescent where M: RawColumns<f64> + ColumnStats<f64> + ?Sized
Source: src/solver/proximal/multivariate.rs
impl<P, Q: ProximalPenalty> PathSolver<Problem<Box<dyn RuntimeDesign + '_>, MultivariateGaussian<'_>, AxisPenalty<P>>, AxisPenalty<Q>> for shrinkage::ProximalGradient<Vec<f64>>