<commit_before>// Package assess provides functions for measuring the difference between the
// values predicted by a model and the values actually observed.
package assess

import (
	"math"
)

// MSE computes the mean-square error.
//
// https://en.wikipedia.org/wiki/Mean_squared_error
func MSE(predicted, observed []float64) float64 {
	var delta, sum float64

	for i := range observed {
		delta = predicted[i] - observed[i]
		sum += delta * delta
	}
<commit_msg>Love UTF-8!<commit_after>// Package assess provides functions for measuring the difference between the
// values predicted by a model and the values actually observed.
package assess

import (
	"math"
)

// MSE computes the mean-square error.
//
// https://en.wikipedia.org/wiki/Mean_squared_error
func MSE(predicted, observed []float64) float64 {
	var sum, Δ float64

	for i := range observed {
		Δ = predicted[i] - observed[i]
		sum += Δ * Δ
	}

{'fraction_non_alphanumeric': 0.10526315789473684, 'fraction_numerical': 0.01425438596491228, 'mean_word_length': 3.7305699481865284, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6763194', 'n_tokens_mistral': 295, 'n_tokens_neox': 270, 'n_words': 101}