Method: EasyML::Data::Preprocessor::SimpleImputer#should_transform_custom?

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

#should_transform_custom?(x) ⇒ Boolean

Returns:

  • (Boolean)


193
194
195
196
197
198
199
# File 'lib/easy_ml/data/preprocessor/simple_imputer.rb', line 193

def should_transform_custom?(x)
  if options.key?(:should_transform)
    options[:should_transform].call(x)
  else
    should_transform_default?(x)
  end
end