Updated docs [skip ci]

This commit is contained in:
Andrew Kane
2024-06-30 22:40:09 -07:00
parent 9066cb543d
commit 877e87a501
2 changed files with 8 additions and 8 deletions

View File

@@ -43,25 +43,25 @@ impl Params {
self
}
/// Sets the coefficient of L1-norm regularization on P.
/// Sets the coefficient of L1-norm regularization for P.
pub fn lambda_p1(&mut self, value: f32) -> &mut Self {
self.param.lambda_p1 = value;
self
}
/// Sets the coefficient of L2-norm regularization on P.
/// Sets the coefficient of L2-norm regularization for P.
pub fn lambda_p2(&mut self, value: f32) -> &mut Self {
self.param.lambda_p2 = value;
self
}
/// Sets the coefficient of L1-norm regularization on Q.
/// Sets the coefficient of L1-norm regularization for Q.
pub fn lambda_q1(&mut self, value: f32) -> &mut Self {
self.param.lambda_q1 = value;
self
}
/// Sets the coefficient of L2-norm regularization on Q.
/// Sets the coefficient of L2-norm regularization for Q.
pub fn lambda_q2(&mut self, value: f32) -> &mut Self {
self.param.lambda_q2 = value;
self