Skip to main content

ParamGrid

Type Alias ParamGrid 

Source
pub type ParamGrid = HashMap<String, Vec<ParamValue>>;
Expand description

A grid of hyperparameter values to search over.

Keys are parameter names (e.g. "max_depth"), values are lists of candidate values to try.

§Examples

use scry_learn::search::{ParamGrid, ParamValue};

let mut grid = ParamGrid::new();
grid.insert("max_depth".into(), vec![
    ParamValue::Int(2),
    ParamValue::Int(4),
    ParamValue::Int(8),
]);

Aliased Type§

pub struct ParamGrid { /* private fields */ }