[][src]Struct smartcore::metrics::r2::R2

pub struct R2 {}

Coefficient of Determination (R2)

Implementations

impl R2[src]

pub fn get_score<T: RealNumber, V: BaseVector<T>>(
    &self,
    y_true: &V,
    y_pred: &V
) -> T
[src]

Computes R2 score

  • y_true - Ground truth (correct) target values.
  • y_pred - Estimated target values.

Trait Implementations

impl Debug for R2[src]

impl<'de> Deserialize<'de> for R2[src]

impl Serialize for R2[src]

Auto Trait Implementations

impl RefUnwindSafe for R2[src]

impl Send for R2[src]

impl Sync for R2[src]

impl Unpin for R2[src]

impl UnwindSafe for R2[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,