Skip to content

Commit 4f8ccef

Browse files
committed
clippy lints
1 parent e9904a8 commit 4f8ccef

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

algorithms/linfa-ftrl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ version = "1.0"
2424
features = ["derive"]
2525

2626
[dependencies]
27-
ndarray = { version = "0.15.4", features = ["serde"] }
27+
ndarray = { version = "0.15", features = ["serde"] }
2828
ndarray-rand = "0.14.0"
2929
argmin = { version = "0.9.0", default-features = false }
3030
argmin-math = { version = "0.3", features = ["ndarray_v0_15-nolinalg"] }

src/correlation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl<F: Float> PearsonCorrelation<F> {
128128
///
129129
/// * `dataset`: Data for the correlation analysis
130130
/// * `num_iter`: optionally number of iterations of the p-value test, if none then no p-value
131-
/// are calculate
131+
/// are calculated
132132
///
133133
/// # Example
134134
///

src/dataset/impl_dataset.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,8 @@ where
680680
/// - `k`: the number of folds to apply to the dataset
681681
/// - `params`: the desired parameters for the fittable algorithm at hand
682682
/// - `fit_closure`: a closure of the type `(params, training_data) -> fitted_model`
683-
/// that will be used to produce the trained model for each fold. The training data given in input
684-
/// won't outlive the closure.
683+
/// that will be used to produce the trained model for each fold. The training data given in
684+
/// input won't outlive the closure.
685685
///
686686
/// ## Returns
687687
///
@@ -794,9 +794,9 @@ where
794794
/// - `k`: the number of folds to apply
795795
/// - `parameters`: a list of models to compare
796796
/// - `eval`: closure used to evaluate the performance of each trained model. This closure is
797-
/// called on the model output and validation targets of each fold and outputs the performance
798-
/// score for each target. For single-target dataset the signature is `(Array1, Array1) ->
799-
/// Array0`. For multi-target dataset the signature is `(Array2, Array2) -> Array1`.
797+
/// called on the model output and validation targets of each fold and outputs the performance
798+
/// score for each target. For single-target dataset the signature is `(Array1, Array1) ->
799+
/// Array0`. For multi-target dataset the signature is `(Array2, Array2) -> Array1`.
800800
///
801801
/// ### Returns
802802
///

src/dataset/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ impl Deref for Pr {
161161
/// # Fields
162162
///
163163
/// * `records`: a two-dimensional matrix with dimensionality (nsamples, nfeatures), in case of
164-
/// kernel methods a quadratic matrix with dimensionality (nsamples, nsamples), which may be sparse
164+
/// kernel methods a quadratic matrix with dimensionality (nsamples, nsamples), which may be sparse
165165
/// * `targets`: a two-/one-dimension matrix with dimensionality (nsamples, ntargets)
166166
/// * `weights`: optional weights for each sample with dimensionality (nsamples)
167167
/// * `feature_names`: optional descriptive feature names with dimensionality (nfeatures)
@@ -170,7 +170,7 @@ impl Deref for Pr {
170170
///
171171
/// * `R: Records`: generic over feature matrices or kernel matrices
172172
/// * `T`: generic over any `ndarray` matrix which can be used as targets. The `AsTargets` trait
173-
/// bound is omitted here to avoid some repetition in implementation `src/dataset/impl_dataset.rs`
173+
/// bound is omitted here to avoid some repetition in implementation `src/dataset/impl_dataset.rs`
174174
#[derive(Debug, Clone, PartialEq)]
175175
pub struct DatasetBase<R, T>
176176
where

0 commit comments

Comments
 (0)