clearml Unexpected sending source code to demo server - Python
I started to check "trains", implemented sample with help of
from trains import Task
run it and found my sources code on public demo server. Also, I don't see a way to delete it.
9 Answer:
Hi @pedropalb,
Just do:
from trains_agent import APIClient
client = APIClient()
tasks = client.tasks.get_all(system_tags=['archived'], only_fields=['id'])
for task in tasks:
client.tasks.delete(task=task.id)
APIClient.tasks.get_all()
provides several query parameters, you can see its docstring by typing help(client.tasks.get_all)
in your python console (or client.tasks.get_all?
if you're using IPython)
Thanks @ainoam! maybe add it to the docs? anyway for future reference if someone sees this:
Task.set_credentials()
and sits in task.py
Hi @constructor-igor,
First of all, please know you can reset the experiment in the public demo server by right-clicking on your experiment in the experiments list and than edit the "Execution\Uncommitted Changes" section to delete any source code that was logged.
Trains is designed to run with a local server - we really tried to make it as simple as possible :) - see Configuring your own TRAINS server. Out of the box, trains will use the public demo server to allow you to quickly try it out before deciding to install your own server instance.
If you do have a local server installed and configured trains to use it, but still trains uses the public demo server, please let me know so we can investigate this issue.
As for the source code, trains is designed to help you track the source used for your experiment by storing the git repository reference along with the branch, tag or commit ID, as well as any locally modified source files in your git repository. If you're not using a git repository and simply run a python script file, trains will store this file as part of the experiment. This feature is an integral part of the trains and trains-agent ecosystem.
For this reason, we strongly recommend anyone using trains to run their own local server, especially when using you own training code and not just trying it out.
First of all, please know you can reset the experiment in the public demo server by right-clicking on your experiment in the experiments list and than edit the "Execution\Uncommitted Changes" section to delete any source code that was logged.
please, could you provide menu command with name "delete". It will be more clear.
Out of the box, trains will use the public demo server to allow you to quickly try it out before deciding to install your own server instance.
It's a good feature! But I have a problem to run copy paste command and find my code on public site. Probably, could you provide a initialization command with parameters like: nameofserver, sendingsourcecode, etc. It will allow me to understand all hidden options and define level of sending data. Now, "trains" sends data without any parameters. How can I be sure, if it will not send my data (even I use private server)? Pay attention, It can stop using of the service in real algorithms development.
suggested approach:
from trains import Task
Task.init(server="public_demo", sending_source=True)
where public_demo, seems, should be actual address.
Hi @constructor-igor , thank you for the suggestion!
Currently there is a way to setup Trains to connect to a specific trains-server from code, it is quite useful when you have no access to local filesystem (i.e. cannot edit ~/trains.conf
), for example when using Jupyter Notebook on a remote machine. You can check the interface here
Regrading deleting your experiment, In the UI the easiest way to go about it is to right-click the experiment and archive it. Obviously there is a way to delete experiments, but we had the feeling it is safer to move them to "archive" instead of actually deleting them.
That said, you can of course delete an experiment from code.
This is achieved with the help of the trains-agent
package, for example deleting task id aabb112233
:
from trains_agent import APIClient
client = APIClient()
client.tasks.delete(task='aabb112233')
Hi @bmartinn! And what if I wanted to delete all archived tasks? Do I have to get their ids one by one? Is there a query interface for the entities? Something like client.tasks.query(**predicates). Thanks!
sorry to hijack the post, @bmartinn, the link you provided to programatically setup clearml to use a specific clearml-server seems to be broken, mind re-sharing it? i've been looking for just that
Read next
- How can I get other cognito user attributes like created_at? - amplify-js
- Unable to load basic assets when having a theme in place - production
- surge Detect DAW; Disable VST3 outs in FL unless you ask for them C
- Changing the DAV:displayname of the “calendar-proxy-read|-write” WebDAV resources - PHP server
- Enable payment gateway per currency - PHP invoiceninja
- Is there any way to load model except torh.hub - yolov5
- qBittorrent qBittorrent freezes when using tethered internet from android - Cplusplus
- file-type - vcard are considered as a ics calendar JavaScript