@@ -208,7 +208,7 @@ where
208208 /// println!("{} => {}", x, y);
209209 /// }
210210 /// ```
211- pub fn sample_iter ( & ' a self ) -> Iter < ' a , ' _ , F , T :: Elem , T :: Ix > {
211+ pub fn sample_iter ( & ' a self ) -> Iter < ' a , ' a , F , T :: Elem , T :: Ix > {
212212 Iter :: new ( self . records . view ( ) , self . targets . as_targets ( ) )
213213 }
214214}
@@ -232,7 +232,7 @@ where
232232 ///
233233 /// This iterator produces dataset views with only a single feature, while the set of targets remain
234234 /// complete. It can be useful to compare each feature individual to all targets.
235- pub fn feature_iter ( & ' a self ) -> DatasetIter < ' a , ' _ , ArrayBase < D , Ix2 > , T > {
235+ pub fn feature_iter ( & ' a self ) -> DatasetIter < ' a , ' a , ArrayBase < D , Ix2 > , T > {
236236 DatasetIter :: new ( self , true )
237237 }
238238
@@ -241,7 +241,7 @@ where
241241 /// This functions creates an iterator which produces dataset views complete records, but only
242242 /// a single target each. Useful to train multiple single target models for a multi-target
243243 /// dataset.
244- pub fn target_iter ( & ' a self ) -> DatasetIter < ' a , ' _ , ArrayBase < D , Ix2 > , T > {
244+ pub fn target_iter ( & ' a self ) -> DatasetIter < ' a , ' a , ArrayBase < D , Ix2 > , T > {
245245 DatasetIter :: new ( self , false )
246246 }
247247}
@@ -318,7 +318,7 @@ impl<L: Label, T: Labels<Elem = L>, R: Records> Labels for DatasetBase<R, T> {
318318}
319319
320320#[ allow( clippy:: type_complexity) ]
321- impl < ' a , ' b : ' a , F , L : Label , T , D > DatasetBase < ArrayBase < D , Ix2 > , T >
321+ impl < F , L : Label , T , D > DatasetBase < ArrayBase < D , Ix2 > , T >
322322where
323323 D : Data < Elem = F > ,
324324 T : AsSingleTargets < Elem = L > + Labels < Elem = L > ,
@@ -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 ///
@@ -732,7 +732,7 @@ where
732732 & ' a mut self ,
733733 k : usize ,
734734 fit_closure : C ,
735- ) -> impl Iterator < Item = ( O , DatasetBase < ArrayView2 < F > , ArrayView < E , I > > ) > {
735+ ) -> impl Iterator < Item = ( O , DatasetBase < ArrayView2 < ' a , F > , ArrayView < ' a , E , I > > ) > {
736736 assert ! ( k > 0 ) ;
737737 assert ! ( k <= self . nsamples( ) ) ;
738738 let samples_count = self . nsamples ( ) ;
@@ -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 ///
0 commit comments