Update complex_regression.cljc

This commit is contained in:
Ryan Boldi 2022-04-05 15:21:55 -04:00
parent 11b09c9be0
commit 4f9ed1f267

View File

@ -7,10 +7,10 @@
#?(:cljs [cljs.reader :refer [read-string]])))
(defn- target-function
"Target function: f(x) = (x^3 + 1)^3 + 1"
"Target function: f(x) = (x^3 + 1)^2 + 1"
[x]
(let [x-new (+ (* x x x) 1)]
(+ (* x-new x-new x-new) 1)))
(+ (* x-new x-new) 1)))
(def train-and-test-data
(let [train-inputs (range -5.0 5.0 0.5)