pub fn constrain<T>(
    thread_pool: &mut Pool,
    train_data: &mut TrainData<T>,
    output_file_path: &Path,
    enables_randinit: bool,
    learning_tolerance: Score
)where
    T: HashIndex,