menu

neptune-community

A place where Neptune.ml users and developers come together to make things work

Channels
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 @patryk-miziula 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 @patryk-miziula 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 @patryk-miziula This feature was just released! Upgrade your neptune-client library.

like-fill
1
  • reply
  • like