# R2 / R-squared

R-squared is a measurement of how well the model fits the data. The closer the R-squared value is to 1, the better predictions.

It shows how well the model predicts the actual values. The R-squared metrics aim to give you a sense about accuracy in predictions.

The closer the value of r-squared is to 0, the bigger the difference between actual value and predicted value.

## When to use R-squared

It is important to use R-squared in conjunction with other metrics for your analysis. Treat R-squared as an estimate for your model’s strength, not as a proof of it.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8905001,"math_prob":0.9889631,"size":574,"snap":"2022-40-2023-06","text_gpt3_token_len":133,"char_repetition_ratio":0.18421052,"word_repetition_ratio":0.0,"special_character_ratio":0.21428572,"punctuation_ratio":0.084033616,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9819387,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-25T16:52:20Z\",\"WARC-Record-ID\":\"<urn:uuid:8eedcf1c-03a9-4624-9434-093fddc0007d>\",\"Content-Length\":\"646385\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a4ba9720-c88d-4934-a8d0-b2aa245d9bda>\",\"WARC-Concurrent-To\":\"<urn:uuid:a57157f1-b4ca-4f87-b8fe-482abebed3d9>\",\"WARC-IP-Address\":\"34.77.248.75\",\"WARC-Target-URI\":\"https://peltarion.com/knowledge-center/evaluation-view/regression-loss-metrics/r2-/-r-squared\",\"WARC-Payload-Digest\":\"sha1:GATVWLG7YVDDXN3LLJ46LBVLS5L3ZKAN\",\"WARC-Block-Digest\":\"sha1:PCLKE7BDRETRI4FUUXFSDMZSVPOXLNZD\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030334591.19_warc_CC-MAIN-20220925162915-20220925192915-00285.warc.gz\"}"}