nnet
This commit is contained in:
parent
96c66b33a2
commit
a3a8cb9368
@ -37,7 +37,7 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"# these are the functions we want to classify\n",
|
"# these are the functions we want to classify\n",
|
||||||
"scalar = 10 # larger is harder\n",
|
"scalar = 5 # larger is harder\n",
|
||||||
"noise = Distributions.Normal(0, 0.05)\n",
|
"noise = Distributions.Normal(0, 0.05)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# # problem #1... non-overlapping\n",
|
"# # problem #1... non-overlapping\n",
|
||||||
@ -70,7 +70,7 @@
|
|||||||
"# pick the plotting limits\n",
|
"# pick the plotting limits\n",
|
||||||
"lim = (-1,1)\n",
|
"lim = (-1,1)\n",
|
||||||
"funcs = [f1, f2]\n",
|
"funcs = [f1, f2]\n",
|
||||||
"n = 40\n",
|
"n = 20\n",
|
||||||
"gridx, gridy = gridxy(lim, n)\n",
|
"gridx, gridy = gridxy(lim, n)\n",
|
||||||
"# default(xlim = lim, ylim = lim)\n",
|
"# default(xlim = lim, ylim = lim)\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -126,7 +126,7 @@
|
|||||||
"net = buildTanhClassificationNet(\n",
|
"net = buildTanhClassificationNet(\n",
|
||||||
" 2, # number of inputs\n",
|
" 2, # number of inputs\n",
|
||||||
" 1, # number of outputs\n",
|
" 1, # number of outputs\n",
|
||||||
" [100,100,2], # hidden layers structure\n",
|
" [2,2,2,2,2,2], # hidden layers structure\n",
|
||||||
" params = NetParams(gradientModel = gradientModel)\n",
|
" params = NetParams(gradientModel = gradientModel)\n",
|
||||||
")"
|
")"
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user