style: apply rustfmt across all crates and demos
Consistent formatting pass: line wrapping, import sorting, trailing whitespace removal, let-chain indentation, merged derive attributes, and unsafe block reformatting. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This commit is contained in:
@@ -164,7 +164,9 @@ impl LogisticRegression {
|
||||
pub fn predict(&self, x: &Tensor) -> Result<Tensor> {
|
||||
let probabilities = self.predict_proba(x)?;
|
||||
// Convert probabilities to binary predictions (threshold = 0.5)
|
||||
probabilities.ge_scalar(0.5).map_err(std::convert::Into::into)
|
||||
probabilities
|
||||
.ge_scalar(0.5)
|
||||
.map_err(std::convert::Into::into)
|
||||
}
|
||||
|
||||
/// Get model coefficients
|
||||
|
||||
Reference in New Issue
Block a user