Handbook
Glossary
compute-cost ( X y params -- cost )
Vocabulary
tensors
.
demos
.
private
Inputs
X
an
object
y
an
object
params
an
object
Outputs
cost
an
object
Definition
USING:
accessors
kernel
math
sequences
tensors
;
IN:
tensors.demos.private
::
compute-cost
( X y params -- cost )
1 2 y
shape>>
first
*
/
X params
matmul
y
t-
dup
t*
sum
*
;