Sha256: 5c063cf7413a2ebe4c9dee299cd325c4622a57945d036383d7f55e8bfad43830

Contents?: true

Size: 1.15 KB

Versions: 7

Compression:

Stored size: 1.15 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
#  workflow_status    :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

7 entries across 7 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc52 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc51 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc50 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc49 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc48 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc47 app/models/easy_ml/feature_history.rb
easy_ml-0.2.0.pre.rc46 app/models/easy_ml/feature_history.rb