Method: EasyML::Data::Preprocessor::SimpleImputer#file_path

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

#file_pathObject



128
129
130
131
132
# File 'lib/easy_ml/data/preprocessor/simple_imputer.rb', line 128

def file_path
  raise "Need both attribute and path to save/load statistics" unless attribute.present? && path.to_s.present?

  File.join(path, "statistics.json")
end