Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
9cd38a5
1
Parent(s):
23f74c2
Move Optim.jl import to file that uses it
Browse files- julia/ConstantOptimization.jl +3 -1
- julia/sr.jl +0 -1
julia/ConstantOptimization.jl
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
# Proxy function for optimization
|
2 |
function optFunc(x::Array{Float32, 1}, tree::Node)::Float32
|
3 |
setConstants(tree, x)
|
@@ -44,4 +46,4 @@ function optimizeConstants(member::PopMember)::PopMember
|
|
44 |
end
|
45 |
end
|
46 |
return member
|
47 |
-
end
|
|
|
1 |
+
import Optim
|
2 |
+
|
3 |
# Proxy function for optimization
|
4 |
function optFunc(x::Array{Float32, 1}, tree::Node)::Float32
|
5 |
setConstants(tree, x)
|
|
|
46 |
end
|
47 |
end
|
48 |
return member
|
49 |
+
end
|
julia/sr.jl
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
import Optim
|
2 |
import Printf: @printf
|
3 |
import Random: shuffle!, randperm
|
4 |
|
|
|
|
|
1 |
import Printf: @printf
|
2 |
import Random: shuffle!, randperm
|
3 |
|