pub struct RadialBasisFunctions { /* private fields */ }Expand description
Radial Basis Functions Generator
Generate radial basis functions (RBFs) for non-linear feature transformation. Supports various RBF types including Gaussian, Multiquadric, and Inverse Multiquadric.
§Parameters
n_centers- Number of RBF centersrbf_type- Type of radial basis functioncenters- RBF center positions (if None, centers are determined from data)shape_parameter- Shape parameter for RBFs (affects function width)normalize- Whether to normalize the output features
§Examples
use sklears_feature_extraction::basic_features::{RadialBasisFunctions, RBFType};
use scirs2_core::ndarray::array;
let X = array![[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]];
let rbf = RadialBasisFunctions::new()
.n_centers(3)
.rbf_type(RBFType::Gaussian)
.shape_parameter(1.0);
let features = rbf.transform(&X.view()).expect("valid input produces transform output");Implementations§
Source§impl RadialBasisFunctions
impl RadialBasisFunctions
Sourcepub fn shape_parameter(self, shape_parameter: Float) -> Self
pub fn shape_parameter(self, shape_parameter: Float) -> Self
Set the shape parameter (epsilon)
Trait Implementations§
Source§impl Clone for RadialBasisFunctions
impl Clone for RadialBasisFunctions
Source§impl Debug for RadialBasisFunctions
impl Debug for RadialBasisFunctions
Source§impl Default for RadialBasisFunctions
impl Default for RadialBasisFunctions
Auto Trait Implementations§
impl Freeze for RadialBasisFunctions
impl RefUnwindSafe for RadialBasisFunctions
impl Send for RadialBasisFunctions
impl Sync for RadialBasisFunctions
impl Unpin for RadialBasisFunctions
impl UnsafeUnpin for RadialBasisFunctions
impl UnwindSafe for RadialBasisFunctions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more