Skip to content

Commit f467cf2

Browse files
committed
fixing clippy warnigns
1 parent 33aae10 commit f467cf2

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

src/machine_learning/optimization/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ mod momentum;
44

55
pub use self::adam::Adam;
66
pub use self::gradient_descent::gradient_descent;
7-
pub use self::momentum::momentum;

src/machine_learning/optimization/momentum.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
/// # Returns
2626
///
2727
/// A reference to the optimized parameter vector `x`.
28+
#[allow(dead_code)]
2829
pub fn momentum(
2930
derivative: impl Fn(&[f64]) -> Vec<f64>,
3031
x: &mut Vec<f64>,

0 commit comments

Comments
 (0)