Skip to content

Commit

Permalink
Jupyter hyperopt fix (#153)
Browse files Browse the repository at this point in the history
* Update juliacon_2023_distributedhyperopt.jl

* added comment

* description change
  • Loading branch information
ThummeTo committed Sep 17, 2024
1 parent 1c95b9e commit d6c6d3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/jupyter-src/juliacon_2023.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"If you want to do hyper parameter optimization, uncomment/remove all code that comes from here on. The following is for demonstration purpose only. \n",
"\n",
"Let's check if the train function is working for a given set of hyperparameters."
]
},
Expand All @@ -793,7 +795,7 @@
"source": [
"# check if the train function is working for a set of given (random) hyperparameters\n",
"# ([ ETA, BETA1, BETA2, BATCHDUR, LASTWEIGHT, SCHEDULER, LOSS], RESOURCE, INDEX)\n",
"train!([0.0001, 0.9, 0.999, 4.0, 0.7, :Random, :MSE], 8.0, 1) "
"train!([0.0001, 0.9, 0.999, 4.0, 0.7, :Random, :MSE], 8.0, 1)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/jupyter-src/juliacon_2023_distributedhyperopt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ using DistributedHyperOpt # add via `add "https://github.com/ThummeTo/Distribu

nprocs()
workers = addprocs(5)
@everywhere include(joinpath(@__DIR__, "workshop_module.jl"))
@everywhere include(joinpath(@__DIR__, "juliacon_2023.jl"))

# creating paths for log files (logs), parameter sets (params) and hyperparameter plots (plots)
for dir ("logs", "params", "plots")
Expand Down

0 comments on commit d6c6d3f

Please sign in to comment.