Method: EasyML::Data::Preprocessor::SimpleImputer#transform
- Defined in:
- lib/easy_ml/data/preprocessor/simple_imputer.rb
#transform(x) ⇒ Object
76 77 78 79 80 81 82 83 84 |
# File 'lib/easy_ml/data/preprocessor/simple_imputer.rb', line 76 def transform(x) check_is_fitted if x.is_a?(Polars::Series) transform_polars(x) else transform_dense(x) end end |