Coder Social home page Coder Social logo

Comments (10)

bmartinn avatar bmartinn commented on July 29, 2024

@eyalto How about this one (it will work in tandem with ArgParse, absl etc.):
(it is basically another set of parameters dictionary, we connect with the experiment/task)

import os
from trains import Task
task = Task.init(project_name='examples', task_name='os environment example')
task.connect({k: os.environ.get(k) for k in ['PATH', 'PWD', 'PYTHONPATH']})

from clearml.

eyalto avatar eyalto commented on July 29, 2024

@bmartinn -

This indeed results in the same effect but I was looking for a mechanism that is external to the code that can be configured somehow externally and minimises the footprint in the code
.
This would be a way to track instrumentation of the external environment to the training job.
Things like dedicated links to additional tools (like job-id or link to the container running the training job - or other resources generated by the external environment)

I will take your advise and implement such mechanism inside our code - but it may be useful for other users / developers as well - if this is indeed the case ....

from clearml.

bmartinn avatar bmartinn commented on July 29, 2024

@eyalto thank you for the feature suggestion.
Here is what I was thinking:

$ export TRAINS_LOG_ENVIRONMENT=
(default) TRAINS does not log OS environment variables

$ export TRAINS_LOG_ENVIRONMENT="PWD,PYTHONPATH"
Will result in TRAINS logging values of both PWD and PYTHONPATH

$ export TRAINS_LOG_ENVIRONMENT="*"
Will result in TRAINS logging values of ALL environment variables

Is that what you had in mind?

from clearml.

eyalto avatar eyalto commented on July 29, 2024

from clearml.

bmartinn avatar bmartinn commented on July 29, 2024

@eyalto, the feature is included in the latest release v0.10.2 exactly as suggested.

from clearml.

shaulimaya avatar shaulimaya commented on July 29, 2024

Hey!
Thanks for the feature!
I already start using it, but I think that this is a little bit strange that the env params are under HYPER PARAMETERS
Maybe we can find other place for it?
Env params?

from clearml.

bmartinn avatar bmartinn commented on July 29, 2024

@shaulimaya great to hear you are already using this feature.
Yes, in the next version we will have a separate section for Environment Variables, until then they are under Hyper-Parameters.

from clearml.

shaulimaya avatar shaulimaya commented on July 29, 2024

Thanks a lot!
Another small thing - if you can render links "http://blabla" as link
:)

from clearml.

bmartinn avatar bmartinn commented on July 29, 2024

@shaulimaya not sure security wise, this is recommended :)

from clearml.

bmartinn avatar bmartinn commented on July 29, 2024

Closing, feature is now available in 0.10.2

from clearml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.