menu

neptune-community

A place where neptune.ai users and developers come together to make things work

Channels
Chat
view-forward
# All channels
view-forward
# General
view-forward
# Blog
view-forward
# Bugs
view-forward
# Feature requests
view-forward
# Random
view-forward
# What's new
view-forward
Team

`send_artifact`: choose the new name of the file sent

August 5, 2019 at 9:38am

`send_artifact`: choose the new name of the file sent

August 5, 2019 at 9:38am
Hi, could you guys please consider extending send_artifact to have a possibility to choose the new name of the file sent?

August 5, 2019 at 10:17am
Hi thanks for that!
Just to make sure: you need something like this: neptune.log_artifact('my_project/my_file.txt', 'my_file_new_name.txt')
Is that correct?
  • reply
  • like
correct
  • reply
  • like
Also you may want to check out the pickle_and_send_artifact function from neptune-contrib see the docs here.
It lets you pickle your python object to temporary file and send it to neptune, all in one line:
from sklearn.ensemble import RandomForestClassifier
from neptunecontrib.monitoring.utils import pickle_and_send_artifact
with neptune.create_experiment():
rf = RandomForestClassifier()
pickle_and_send_artifact(rf, 'rf.pkl')
I think it's pretty useful.
Edited
  • reply
  • like

August 12, 2019 at 10:33am
Hi This feature was just released! Upgrade your neptune-client library.
like-fill
1
  • reply
  • like