Function gbdt::config::string2loss
source · [−]pub fn string2loss(s: &str) -> Loss
Expand description
Converting std::string::String to Loss.
Example
use gbdt::config::{Loss, string2loss};
let loss = string2loss("SquaredError");