fn check(&mut self) -> std::result::Result<Option<Result<F, P>>, Error> {
		info!("model search...");
		let t = Instant::now();
		self.model = Self::learner_result(self.learner.produce_model())?;
		self.learner_time += t.elapsed();

		match &self.model {
			Some(model) => {
				info!("model found.");
				info!("checking...");
				let t = Instant::now();
				let result = Self::teacher_result(self.teacher.check(model))?;
				self.teacher_time += t.elapsed();
				Ok(Some(result))
			},
			None => {
				info!("no model found.");
				Ok(None)
			}
		}
	}
/// Find the next model and check it.
Find the next model and check it.
Find the next model and check it .
fn check(&mut self) -> std::result::Result<Option<Result<F, P>>, Error> {
		info!("model search...");
		let t = Instant::now();
		self.model = Self::learner_result(self.learner.produce_model())?;
		self.learner_time += t.elapsed();
		match &self.model {
			Some(model) => {
				info!("model found.");
				info!("checking...");
				let t = Instant::now();
				let result = Self::teacher_result(self.teacher.check(model))?;
				self.teacher_time += t.elapsed();
				Ok(Some(result))
			},
			None => {
				info!("no model found.");
				Ok(None)
			}
		}
	}
fn check ( & mut self ) -> std :: result :: Result < Option < Result < F , P > > , Error > { info ! ( " " ) ; let t = Instant :: now ( ) ; self . model = Self :: learner_result ( self . learner . produce_model ( ) ) ? ; self . learner_time += t . elapsed ( ) ; match & self . model { Some ( model ) => { info ! ( " " ) ; info ! ( " " ) ; let t = Instant :: now ( ) ; let result = Self :: teacher_result ( self . teacher . check ( model ) ) ? ; self . teacher_time += t . elapsed ( ) ; Ok ( Some ( result ) ) } , None => { info ! ( " " ) ; Ok ( None ) } } }
Find the next model and check it.
Find the next model and check it .
&mut self
&mut self