debian-mirror-gitlab/lib/api/entities/ml/mlflow/experiment.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
438 B
Ruby
Raw Normal View History

2022-10-11 01:57:18 +05:30
# frozen_string_literal: true
module API
module Entities
module Ml
module Mlflow
class Experiment < Grape::Entity
2022-11-25 23:54:43 +05:30
expose(:experiment_id) { |experiment| experiment.iid.to_s }
expose :name
expose(:lifecycle_stage) { |experiment| experiment.deleted_on? ? 'deleted' : 'active' }
expose(:artifact_location) { |experiment| 'not_implemented' }
2022-10-11 01:57:18 +05:30
end
end
end
end
end