pub struct PolynomialRegressor {
pub coef: Vec<f64>,
}Expand description
Implements a polynomial regressor.
In the case of a two coefficients, this reduces to simple linear regression, where the first parameter is the intercept, and the second is the slope.
Fields§
§coef: Vec<f64>Implementations§
Source§impl PolynomialRegressor
impl PolynomialRegressor
Sourcepub fn new(deg: usize) -> Self
pub fn new(deg: usize) -> Self
Create a new polynomial regressor with degree deg (e.g., deg = 1 is a linear model).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PolynomialRegressor
impl RefUnwindSafe for PolynomialRegressor
impl Send for PolynomialRegressor
impl Sync for PolynomialRegressor
impl Unpin for PolynomialRegressor
impl UnsafeUnpin for PolynomialRegressor
impl UnwindSafe for PolynomialRegressor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more