Class: Openlayer::Models::InferencePipelines::RowUpdateParams::Config

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openlayer/models/inference_pipelines/row_update_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, inference_id_column_name: nil, latency_column_name: nil, timestamp_column_name: nil) ⇒ Object

Some parameter documentations has been truncated, see Openlayer::Models::InferencePipelines::RowUpdateParams::Config for more details.

Parameters:

  • ground_truth_column_name (String, nil) (defaults to: nil)

    Name of the column with the ground truths.

  • human_feedback_column_name (String, nil) (defaults to: nil)

    Name of the column with human feedback.

  • inference_id_column_name (String, nil) (defaults to: nil)

    Name of the column with the inference ids. This is useful if you want to update

  • latency_column_name (String, nil) (defaults to: nil)

    Name of the column with the latencies.

  • timestamp_column_name (String, nil) (defaults to: nil)

    Name of the column with the timestamps. Timestamps must be in UNIX sec format. I



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/openlayer/models/inference_pipelines/row_update_params.rb', line 36

class Config < Openlayer::Internal::Type::BaseModel
  # @!attribute ground_truth_column_name
  #   Name of the column with the ground truths.
  #
  #   @return [String, nil]
  optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true

  # @!attribute human_feedback_column_name
  #   Name of the column with human feedback.
  #
  #   @return [String, nil]
  optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true

  # @!attribute latency_column_name
  #   Name of the column with the latencies.
  #
  #   @return [String, nil]
  optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true

  # @!attribute timestamp_column_name
  #   Name of the column with the timestamps. Timestamps must be in UNIX sec format.
  #   If not provided, the upload timestamp is used.
  #
  #   @return [String, nil]
  optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true

  request_only do
    # @!attribute inference_id_column_name
    #   Name of the column with the inference ids. This is useful if you want to update
    #   rows at a later point in time. If not provided, a unique id is generated by
    #   Openlayer.
    #
    #   @return [String, nil]
    optional :inference_id_column_name, String, api_name: :inferenceIdColumnName, nil?: true
  end

  # @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, inference_id_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
  #   Some parameter documentations has been truncated, see
  #   {Openlayer::Models::InferencePipelines::RowUpdateParams::Config} for more
  #   details.
  #
  #   @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
  #
  #   @param human_feedback_column_name [String, nil] Name of the column with human feedback.
  #
  #   @param inference_id_column_name [String, nil] Name of the column with the inference ids. This is useful if you want to update
  #
  #   @param latency_column_name [String, nil] Name of the column with the latencies.
  #
  #   @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
end

Instance Attribute Details

#ground_truth_column_nameString?

Name of the column with the ground truths.

Returns:

  • (String, nil)


41
# File 'lib/openlayer/models/inference_pipelines/row_update_params.rb', line 41

optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true

#human_feedback_column_nameString?

Name of the column with human feedback.

Returns:

  • (String, nil)


47
# File 'lib/openlayer/models/inference_pipelines/row_update_params.rb', line 47

optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true

#latency_column_nameString?

Name of the column with the latencies.

Returns:

  • (String, nil)


53
# File 'lib/openlayer/models/inference_pipelines/row_update_params.rb', line 53

optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true

#timestamp_column_nameString?

Name of the column with the timestamps. Timestamps must be in UNIX sec format. If not provided, the upload timestamp is used.

Returns:

  • (String, nil)


60
# File 'lib/openlayer/models/inference_pipelines/row_update_params.rb', line 60

optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true