Skip to content

Commit 69c4805

Browse files
committed
rename to residual_chain as consistent with struct
1 parent f024a6c commit 69c4805

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/composing/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
//! * `MultiTargetModel`: combine multiple univariate models to a single multi-target model
66
//! * `Platt`: calibrate a classifier (i.e. SVC) to predicted posterior probabilities
77
//! * `ResidualChain`: fit models sequentially on the residuals of the previous one
8-
//! (forward stagewise additive modeling / L2Boosting); see [`residual_sequence::Stagewise`]
8+
//! (forward stagewise additive modeling / L2Boosting); see [`residual_chain::Stagewise`]
99
mod multi_class_model;
1010
mod multi_target_model;
1111
pub mod platt_scaling;
12-
pub mod residual_sequence;
12+
pub mod residual_chain;
1313

1414
pub use multi_class_model::MultiClassModel;
1515
pub use multi_target_model::MultiTargetModel;
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
//! use linfa::traits::{Fit, Predict};
3232
//! use linfa::DatasetBase;
3333
//! use linfa_linear::LinearRegression;
34-
//! use linfa::composing::residual_sequence::{ResidualChain, Stagewise};
34+
//! use linfa::composing::residual_chain::{ResidualChain, Stagewise};
3535
//! use ndarray::{array, Array2};
3636
//!
3737
//! // y = 2x: perfectly linear, so the corrector should see zero residuals.
@@ -57,7 +57,7 @@
5757
//! use linfa::traits::{Fit, Predict};
5858
//! use linfa::DatasetBase;
5959
//! use linfa_linear::LinearRegression;
60-
//! use linfa::composing::residual_sequence::Stagewise;
60+
//! use linfa::composing::residual_chain::Stagewise;
6161
//! use ndarray::{array, Array2};
6262
//!
6363
//! // y = 2x: one linear model is enough to fit this perfectly.
@@ -85,7 +85,7 @@
8585
//! use linfa::traits::{Fit, Predict};
8686
//! use linfa::DatasetBase;
8787
//! use linfa_linear::LinearRegression;
88-
//! use linfa::composing::residual_sequence::{ResidualChain, Stagewise};
88+
//! use linfa::composing::residual_chain::{ResidualChain, Stagewise};
8989
//! use linfa_svm::Svm;
9090
//! use ndarray::Array;
9191
//!
@@ -189,7 +189,7 @@ impl<B, C, F: Float> ResidualChain<B, C, F> {
189189
/// use linfa::traits::Fit;
190190
/// use linfa::DatasetBase;
191191
/// use linfa_linear::LinearRegression;
192-
/// use linfa::composing::residual_sequence::Stagewise;
192+
/// use linfa::composing::residual_chain::Stagewise;
193193
/// use ndarray::{array, Array2};
194194
///
195195
/// let x = Array2::from_shape_fn((5, 1), |(i, _)| i as f64);
@@ -345,7 +345,7 @@ impl<M, F: Float> Shrunk<M, F> {
345345
/// use linfa::traits::{Fit, Predict};
346346
/// use linfa::DatasetBase;
347347
/// use linfa_linear::LinearRegression;
348-
/// use linfa::composing::residual_sequence::{Shrunk, Stagewise};
348+
/// use linfa::composing::residual_chain::{Shrunk, Stagewise};
349349
/// use ndarray::{array, Array2};
350350
///
351351
/// let x = Array2::from_shape_fn((5, 1), |(i, _)| i as f64);

0 commit comments

Comments
 (0)