pub async fn seed_monitor_event_pair(
	app: &App,
	model_id: Id,
	correct_prediction: bool,
) -> Result<()> {
	let (prediction_id, prediction_result) = seed_single_prediction_event(app, model_id).await?;
	seed_single_true_value_event(
		app,
		model_id,
		prediction_id,
		prediction_result,
		correct_prediction,
	)
	.await?;
	Ok(())
}
/// Seeds a prediction and a true value at once
Seeds a prediction and a true value at once
Seeds a prediction and a true value at once
pub async fn seed_monitor_event_pair(
	app: &App,
	model_id: Id,
	correct_prediction: bool,
) -> Result<()> {
	let (prediction_id, prediction_result) = seed_single_prediction_event(app, model_id).await?;
	seed_single_true_value_event(
		app,
		model_id,
		prediction_id,
		prediction_result,
		correct_prediction,
	)
	.await?;
	Ok(())
}
pub async fn seed_monitor_event_pair ( app : & App , model_id : Id , correct_prediction : bool , ) -> Result < ( ) > { let ( prediction_id , prediction_result ) = seed_single_prediction_event ( app , model_id ) . await ? ; seed_single_true_value_event ( app , model_id , prediction_id , prediction_result , correct_prediction , ) . await ? ; Ok ( ( ) ) }
Seeds a prediction and a true value at once
Seeds a prediction and a true value at once
app
&App
model_id
Id
correct_prediction
bool