Sha256: e381c26e5f9288bb01f40b34e984005cd53b6f446a6316f77bbc97ff22279b39

Contents?: true

Size: 1.12 KB

Versions: 44

Compression:

Stored size: 1.12 KB

Contents

# == Schema Information
#
# Table name: easy_ml_feature_histories
#
#  id                 :bigint           not null, primary key
#  feature_id         :integer          not null
#  dataset_id         :integer          not null
#  name               :string
#  version            :integer
#  feature_class      :string           not null
#  feature_position   :integer
#  batch_size         :integer
#  needs_fit          :boolean
#  sha                :string
#  primary_key        :string
#  applied_at         :datetime
#  fit_at             :datetime
#  refresh_every      :integer
#  created_at         :datetime         not null
#  updated_at         :datetime         not null
#  history_started_at :datetime         not null
#  history_ended_at   :datetime
#  history_user_id    :integer
#  snapshot_id        :string
#
module EasyML
  class FeatureHistory < ActiveRecord::Base
    self.table_name = "easy_ml_feature_histories"
    include Historiographer::History

    after_find :download_remote_files
    scope :ordered, -> { order(feature_position: :asc) }

    def download_remote_files
      feature_store&.download
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc45 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc44 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc43 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc41 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc40 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc39 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc38 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc37 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc36 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc35 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc34 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc33 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc32 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc31 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc30 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc29 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc28 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc27 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc26 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc25 app/models/easy_ml/feature_history.rb