Updated docs [skip ci]

This commit is contained in:
Andrew Kane
2024-06-30 22:49:08 -07:00
parent 877e87a501
commit bccbdd4d9c
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 for P.
/// Sets the L1-regularization parameter 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 for P.
/// Sets the L2-regularization parameter 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 for Q.
/// Sets the L1-regularization parameter 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 for Q.
/// Sets the L2-regularization parameter for Q.
pub fn lambda_q2(&mut self, value: f32) -> &mut Self {
self.param.lambda_q2 = value;
self