Module: EasyML::Transforms
- Defined in:
- lib/easy_ml/transforms.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
2 3 4 |
# File 'lib/easy_ml/transforms.rb', line 2 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#apply_transforms(df) ⇒ Object
24 25 26 27 28 |
# File 'lib/easy_ml/transforms.rb', line 24 def apply_transforms(df) self.class.transforms.reduce(df) do |df, transform_method| send(transform_method, df) end end |
#missing_any?(list1, list2) ⇒ Boolean
20 21 22 |
# File 'lib/easy_ml/transforms.rb', line 20 def missing_any?(list1, list2) (list1 - list2).any? end |