Sha256: d4d903385d492de5d4ed37ab8f4c4c136f844f8279dff38e8c24fe6592e09329

Contents?: true

Size: 1.05 KB

Versions: 40

Compression:

Stored size: 1.05 KB

Contents

class CreateEasyMLTunerJobs < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def change
    create_table :easy_ml_tuner_jobs do |t|
      t.json :config, null: false
      t.bigint :best_tuner_run_id
      t.bigint :model_id, null: false
      t.string :status
      t.string :direction, default: 'minimize'
      t.datetime :started_at
      t.datetime :completed_at
      t.jsonb :metadata
      t.string :wandb_url

      t.timestamps

      t.index :status
      t.index :started_at
      t.index :completed_at
      t.index :model_id
      t.index :best_tuner_run_id
      t.index :wandb_url
    end

    create_table :easy_ml_tuner_runs do |t|
      t.bigint :tuner_job_id, null: false
      t.json :hyperparameters, null: false
      t.float :value
      t.integer :trial_number
      t.string :status
      t.string :wandb_url

      t.timestamps

      t.index [:tuner_job_id, :value]
      t.index [:tuner_job_id, :trial_number], name: "idx_tuner_runs_and_trial_number"
      t.index :status
      t.index :wandb_url
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc40 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc39 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc38 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc37 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc36 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc35 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc34 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc33 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc32 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc31 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc30 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc29 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc28 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc27 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc26 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc25 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc24 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc23 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc22 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt
easy_ml-0.2.0.pre.rc21 lib/easy_ml/railtie/templates/migration/create_easy_ml_tuner_jobs.rb.tt