summaryrefslogtreecommitdiff
path: root/lib/api/entities/ml/mlflow/run.rb
blob: a8e1cfe08dd0001f3b7566c046c13ad12f88a53e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module API
  module Entities
    module Ml
      module Mlflow
        class Run < Grape::Entity
          expose :run do
            expose(:info) { |candidate| RunInfo.represent(candidate) }
            expose :data do
              expose :metrics, using: Metric
              expose :params, using: RunParam
            end
          end
        end
      end
    end
  end
end