f1_score# rojak.turbulence.metrics.f1_score(truth=None, prediction=None, confuse_matrix=None)[source]# Compute the F1 Score Parameters: truth (Array | None) prediction (Array | None) confuse_matrix (NDArray | None) Return type: float Returns: Examples >>> y_pred = da.asarray([0, 1, 0, 0]) >>> y_true = da.asarray([0, 1, 0, 1]) >>> f1_score(truth=y_true, prediction=y_pred) 0.666