Sha256: 45cda514c8366544df7702565d76e4731824e9a3d11bff3239e0ca34e82de5e0

Contents?: true

Size: 1.44 KB

Versions: 11

Compression:

Stored size: 1.44 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 fit
      false
    end

    def processed?
      true
    end

    def should_split?
      false
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc52 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc51 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc50 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc49 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc48 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc47 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc46 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc45 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc44 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc43 app/models/easy_ml/dataset_history.rb
easy_ml-0.2.0.pre.rc41 app/models/easy_ml/dataset_history.rb