Sha256: 14ec634362153441698cdfb93a5af84b85e7d93791be2d79d05dcff2c3a79602

Contents?: true

Size: 1.5 KB

Versions: 40

Compression:

Stored size: 1.5 KB

Contents

# == Schema Information
#
# Table name: easy_ml_dataset_histories
#
#  id                      :bigint           not null, primary key
#  dataset_id              :integer          not null
#  name                    :string           not null
#  description             :string
#  dataset_type            :string
#  status                  :string
#  version                 :string
#  datasource_id           :integer
#  root_dir                :string
#  configuration           :json
#  num_rows                :integer
#  workflow_status         :string
#  statistics              :json
#  preprocessor_statistics :json
#  schema                  :json
#  refreshed_at            :datetime
#  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 DatasetHistory < ActiveRecord::Base
    self.table_name = "easy_ml_dataset_histories"
    include Historiographer::History

    has_many :columns,
      ->(dataset_history) { where(snapshot_id: dataset_history.snapshot_id) },
      class_name: "EasyML::ColumnHistory",
      foreign_key: "dataset_id",
      primary_key: "dataset_id",
      extend: EasyML::ColumnList

    def root_dir
      read_attribute(:root_dir)
    end

    def fit
      false
    end

    def processed?
      true
    end

    def should_split?
      false
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc40 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc39 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc38 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc37 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc36 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc35 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc34 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc33 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc32 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc31 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc30 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc29 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc28 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc27 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc26 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc25 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc24 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc23 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc22 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc21 app/models/easy_ml/dataset_history.rb