Method: EasyML::Data::Preprocessor::SimpleImputer#transform_custom

Defined in:
lib/easy_ml/data/preprocessor/simple_imputer.rb

#transform_custom(x) ⇒ Object



201
202
203
204
205
# File 'lib/easy_ml/data/preprocessor/simple_imputer.rb', line 201

def transform_custom(x)
  raise "Transform required" unless options.key?(:transform)

  options[:transform].call(x)
end