module of sklearn library can be used to check the accuracy using actual and predicted values. code example
Example: sklearn.metrics accuracy_score
// syntax:
// - sklearn.metrics.accuracy_score(y_true, y_pred, *, normalize=True, sample_weight=None)