Skip to content

Commit 5bd5dc6

Browse files
authored
Merge pull request #19 from maxreiss123/develop
correct typo
2 parents 1f33c9f + faeaa85 commit 5bd5dc6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tutorial/JGEP_demo.ipynb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
"source": [
170170
"# We install the package: - takes another minute :(\n",
171171
"using Pkg\n",
172+
"using Random\n",
172173
"Pkg.add(url=\"https://github.com/maxreiss123/GeneExpressionProgramming.jl.git\")"
173174
]
174175
},
@@ -240,7 +241,12 @@
240241
"source": [
241242
"#Generate some data\n",
242243
"x_data = randn(Float64, 2, 1000);\n",
243-
"y_data = @. x_data[1,:] * x_data[1,:] + x_data[1,:] * x_data[2,:] - 2 * x_data[2,:] * x_data[2,:];"
244+
"y_data = @. x_data[1,:] * x_data[1,:] + x_data[1,:] * x_data[2,:] - 2 * x_data[2,:] * x_data[2,:];\n",
245+
"\n",
246+
"\n",
247+
"x_test = randn(Float64, 2, 1000);\n",
248+
"y_test = @. x_data[1,:] * x_data[1,:] + x_data[1,:] * x_data[2,:] - 2 * x_data[2,:] * x_data[2,:];\n",
249+
"\n"
244250
]
245251
},
246252
{

0 commit comments

Comments
 (0)