Update complex_regression.cljc
This commit is contained in:
parent
11b09c9be0
commit
4f9ed1f267
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user