Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Average Square Error
let inline averageSquareError estimated actual = Array.zip estimated actual |> Array.averageBy (fun (w,o) -> pown (o - w) 2) //let estimated = [|1.0; 2.0; 3.0; 4.0; 5.0|] //let actual = [|1.1; 2.2; 2.8; 4.0; 5.1|] //let err = averageSquareError estimated actual //val err : float = 0.02
run
|
edit
|
history
|
help
0
Sending an email
KR#2
FizzBuzz without Modulo in F#
Map.except
Recursion in F#
Yet another Fibonacci
test private keyword
Split list without mutable values
Calculate distance between two GPS latitude-longitude points.
The wonders of F#