Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

neptune_util.py 674 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  1. import neptune.new as neptune
  2. import json
  3. def init_neptune(tags, neptune_config_path="neptune_stuff.json"):
  4. neptune_args = json.loads(open(neptune_config_path, "r").read())
  5. return neptune.init(tags=tags, **neptune_args)
  6. def init_neptune_experiment(experiment_name, params, **kwargs):
  7. init_neptune_project()
  8. return neptune.create_experiment(
  9. experiment_name, params=params, upload_source_files=["**/*.ipynb"]
  10. )
  11. def get_neptune_callback(param_names, tags=[]):
  12. run = init_neptune(tags=tags)
  13. def callback(param_values):
  14. for param_name in param_names:
  15. run[param_name].log(param_values[param_name])
  16. return callback
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...