Class: Metric
A scoring function used by Evaluate or teleprompters.
URI: dspy:Metric
classDiagram
class Metric
click Metric href "../Metric/"
NamedThing <|-- Metric
click NamedThing href "../NamedThing/"
Metric : description
Metric : fn_path
Metric : higher_is_better
Metric : id
Metric : name
Inheritance
- NamedThing
- Metric
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| fn_path | 1 String |
Dotted import path of the metric callable | direct |
| higher_is_better | 0..1 Boolean |
direct | |
| id | 1 Identifier |
Stable opaque identifier for an instance | NamedThing |
| name | 0..1 String |
Short human-readable name | NamedThing |
| description | 0..1 String |
Free-form description | NamedThing |
In Subsets
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:Metric |
| native | dspy:Metric |
| related | nist_ai_100_1:TrustworthinessCharacteristic |
| close | nexus:MetricConfig, mellea:TelemetryMetricSpec |
LinkML Source
Direct
name: Metric
description: A scoring function used by ``Evaluate`` or teleprompters.
in_subset:
- evaluation
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- nexus:MetricConfig
- mellea:TelemetryMetricSpec
related_mappings:
- nist_ai_100_1:TrustworthinessCharacteristic
is_a: NamedThing
attributes:
fn_path:
name: fn_path
description: Dotted import path of the metric callable.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
domain_of:
- Metric
range: string
required: true
higher_is_better:
name: higher_is_better
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: boolean(True)
domain_of:
- Metric
range: boolean
Induced
name: Metric
description: A scoring function used by ``Evaluate`` or teleprompters.
in_subset:
- evaluation
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- nexus:MetricConfig
- mellea:TelemetryMetricSpec
related_mappings:
- nist_ai_100_1:TrustworthinessCharacteristic
is_a: NamedThing
attributes:
fn_path:
name: fn_path
description: Dotted import path of the metric callable.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: Metric
domain_of:
- Metric
range: string
required: true
higher_is_better:
name: higher_is_better
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: boolean(True)
owner: Metric
domain_of:
- Metric
range: boolean
id:
name: id
description: Stable opaque identifier for an instance.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
slot_uri: schema:identifier
identifier: true
owner: Metric
domain_of:
- NamedThing
range: Identifier
required: true
name:
name: name
description: Short human-readable name.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
slot_uri: rdfs:label
owner: Metric
domain_of:
- NamedThing
- LMToolCallPart
- LMMessage
- LMToolSpec
range: string
description:
name: description
description: Free-form description.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
slot_uri: dct:description
owner: Metric
domain_of:
- NamedThing
- LMToolSpec
range: string