pub struct Dataset { /* private fields */ }Expand description
A named, versioned set of evaluation cases.
Implementations§
Source§impl Dataset
impl Dataset
Sourcepub fn new(
name: impl Into<String>,
version: impl Into<String>,
cases: Vec<EvalCase>,
) -> Result<Self>
pub fn new( name: impl Into<String>, version: impl Into<String>, cases: Vec<EvalCase>, ) -> Result<Self>
Build a dataset in memory. Case ids must be unique.
Sourcepub fn from_jsonl(text: &str) -> Result<Self>
pub fn from_jsonl(text: &str) -> Result<Self>
Parse a dataset from JSONL text. Blank lines are ignored; the first non-blank line must be the header.
Trait Implementations§
impl StructuralPartialEq for Dataset
Auto Trait Implementations§
impl Freeze for Dataset
impl RefUnwindSafe for Dataset
impl Send for Dataset
impl Sync for Dataset
impl Unpin for Dataset
impl UnsafeUnpin for Dataset
impl UnwindSafe for Dataset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more