Class: Ask::Eval::Dataset::Item
- Inherits:
-
Data
- Object
- Data
- Ask::Eval::Dataset::Item
- Defined in:
- lib/ask/eval/dataset.rb
Overview
A single dataset item: the input fed to the agent, optional expected output, optional context, and tags/metadata for filtering.
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
Instance Method Summary collapse
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context
25 26 27 |
# File 'lib/ask/eval/dataset.rb', line 25 def context @context end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected
25 26 27 |
# File 'lib/ask/eval/dataset.rb', line 25 def expected @expected end |
#id ⇒ Object (readonly)
Returns the value of attribute id
25 26 27 |
# File 'lib/ask/eval/dataset.rb', line 25 def id @id end |
#input ⇒ Object (readonly)
Returns the value of attribute input
25 26 27 |
# File 'lib/ask/eval/dataset.rb', line 25 def input @input end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
25 26 27 |
# File 'lib/ask/eval/dataset.rb', line 25 def @metadata end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags
25 26 27 |
# File 'lib/ask/eval/dataset.rb', line 25 def @tags end |
Instance Method Details
#to_h ⇒ Object
26 |
# File 'lib/ask/eval/dataset.rb', line 26 def to_h = { id: id, input: input, expected: expected, context: context, tags: , metadata: } |