feat: add Study::summary() and Display impl
Add a human-readable summary method and Display trait for Study<V> where V: Display. The summary shows optimization direction, trial counts (with complete/pruned breakdown), best value, and best parameters with their labels. Also derive PartialOrd + Ord on ParamId for deterministic parameter ordering in summary output.
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ static NEXT_PARAM_ID: AtomicU64 = AtomicU64::new(0);
|
||||
///
|
||||
/// Each parameter is assigned a unique `ParamId` at creation time. Cloning a parameter
|
||||
/// copies its `ParamId`, so clones refer to the same logical parameter.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct ParamId(u64);
|
||||
|
||||
impl ParamId {
|
||||
|
||||
Reference in New Issue
Block a user