Sha256: cacd2799d9a62575e9cf6c5bb4497c301cf8d349c9bed0542c72588ad728f391

Contents?: true

Size: 385 Bytes

Versions: 50

Compression:

Stored size: 385 Bytes

Contents

module EasyML::Data
  class Preprocessor
    module Utils
      def standardize_config(config)
        config.each do |column, strategies|
          next unless strategies.is_a?(Array)

          config[column] = strategies.reduce({}) do |hash, strategy|
            hash.tap do
              hash[strategy] = true
            end
          end
        end
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc47 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc46 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc45 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc44 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc43 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc41 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc40 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc39 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc38 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc37 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc36 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc35 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc34 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc33 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc32 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc31 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc30 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc29 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc28 lib/easy_ml/data/preprocessor/utils.rb
easy_ml-0.2.0.pre.rc27 lib/easy_ml/data/preprocessor/utils.rb