pub fn cont(names: &[&str], weight: f64, norm: norm::Norm, scale: Option<f64>) -> Self {
        InputLayer {
            names: names.iter().map(|x| (&**x).to_string()).collect(),
            indices: None,
            num_columns: None,
            weight,
            is_class: false,
            metric: Metric::Euclidean,
            norm,
            scale: scale.unwrap_or(1.0),
        }
    }
/// Creates a new continuous / non-categorical input layer definition.
Creates a new continuous / non-categorical input layer definition.
Creates a new continuous / non - categorical input layer definition .
pub fn cont(names: &[&str], weight: f64, norm: norm::Norm, scale: Option<f64>) -> Self {
        InputLayer {
            names: names.iter().map(|x| (&**x).to_string()).collect(),
            indices: None,
            num_columns: None,
            weight,
            is_class: false,
            metric: Metric::Euclidean,
            norm,
            scale: scale.unwrap_or(1.0),
        }
    }
pub fn cont ( names : & [ & str ] , weight : f64 , norm : norm :: Norm , scale : Option < f64 > ) -> Self { InputLayer { names : names . iter ( ) . map ( | x | ( & * * x ) . to_string ( ) ) . collect ( ) , indices : None , num_columns : None , weight , is_class : false , metric : Metric :: Euclidean , norm , scale : scale . unwrap_or ( 1.0 ) , } }
Creates a new continuous / non-categorical input layer definition.
Creates a new continuous / non - categorical input layer definition .
names
&[&str]
weight
f64
norm
norm::Norm
scale
Option<f64>
names
&[&str]
weight
f64
norm
norm::Norm
scale
Option<f64>