Current section
Files
Jump to
Current section
Files
gen/src/gleam_synapses@statistics.erl
-module(gleam_synapses@statistics).
-compile(no_auto_import).
-export([root_mean_square_error/1]).
-spec root_mean_square_error(
gleam@iterator:iterator({list(float()), list(float())})
) -> float().
root_mean_square_error(Expected_values_with_output_values) ->
gleam_synapses@model@mathematics:root_mean_square_error(
gleam_zlists:map(
gleam_zlists:of_iterator(Expected_values_with_output_values),
fun(T) -> {Y_hat, Y} = T,
Y_hat_zls = gleam_zlists:of_list(Y_hat),
Y_zls = gleam_zlists:of_list(Y),
{Y_hat_zls, Y_zls} end
)
).