get_accuracy: Get the accuracy of a set of Yelp review rating predictions.

Description Usage Arguments Value

View source: R/predict.R

Description

Get the accuracy of a set of Yelp review rating predictions.

Usage

1

Arguments

data

A tibble of Yelp reviews that has been pre-processed with prepare_yelp(), scored with get_prob(), and had a prediction made with predict_rating().

var

The column containing true ratings.

Value

A one-value tibble with the total prediction accuracy.


chris31415926535/yelpredict documentation built on Jan. 7, 2021, 9:34 p.m.