Running with multiple nodes on a compute cluster #309
MilesCranmer
started this conversation in
Show and tell
Replies: 0 comments 1 reply
-
|
Update: on v0.8.5, this is even simpler - just pass the using ClusterManagers, SymbolicRegression
# Create a custom operator (will be passed to the processes):
inv(x) = 1/x
# Create dataset (locally)
X = rand(Float32, 5, 100) .+ 1
y = 1.2f0 .+ 2 ./ X[3, :]
# Create options (locally)
options = SymbolicRegression.Options(;
binary_operators=(+, *),
unary_operators=(inv,),
npopulations=1000,
ncyclesperiteration=10000,
)
# Run with these procs (it will automatically distribute them!)
hallOfFame = EquationSearch(X, y, niterations=8, options=options,
numprocs=40*4, addprocs_function=addprocs_slurm,
parallelism=:multiprocessing)
dominating = calculate_pareto_frontier(X, y, hallOfFame, options)
best = dominating[end] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Latest way to do this:
Old example:
Here's an example of running SymbolicRegression.jl on a cluster.
Beta Was this translation helpful? Give feedback.
All reactions