Can my request be made as new feature so that we can tag same type of graphs under one main tag
Sure, open a Git Issue :)
Create one experiment (I guess in the scheduler)
task = Task.init('test', 'one big experiment')
Then make sure the the scheduler creates the "main" process as subprocess, basically the default behavior)
Then the sub process can call Task.init and it will get the scheduler Task (i.e. it will not create a new task). Just make sure they all call Task init with the same task name and the same project name.
You can do:task = Task.get_task(task_id='uuid_of_experiment')
task.get_logger().report_scalar(...)
Now the only question is who will create the initial Task, so that the others can report to it. Do you have like a "master" process ?
No. since you are using Pool. there is no need to call task init again. Just call it once before you create the Pool, then when you want to use it, just do task = Task.current_task()
yes But i want two graphs with title as train loss and test loss and they should be under main category "loss"
now after 1st iteration is completed then after 5 minutes my script runs automatically and then again it logs into trains server
then if there are 10 experiments then I have to call Task.create() for those 10 experiments
logger.report_scalar("loss-train", "train", iteration=0, value=100)
logger.report_scalar("loss=test", "test", iteration=0, value=200)
notice that the title of the graph is its uniue id, so if you send scalars to with the same "title" they will show on the same graph
And you want all of them to log into the same experiment ? or do you want an experiment per 60sec (i.e. like the scheduler)
my scheduler will be running every 60 seconds and calling main function
If you one each "main" process as a single experiment, just don't call Task.init in the scheduler
like if u see in above image my project name is abcd18 and under that there are experiments Experiment1, Experiment2 etc.
I have to create a main task for example named as main
okay, Thanks @<1523701205467926528:profile|AgitatedDove14> for the help.
Can my request be made as new feature so that we can tag same type of graphs under one main tag
@<1523720500038078464:profile|MotionlessSeagull22> you cannot have two graphs with the same title, the left side panel presents graph titles. That means that you cannot have a title=loss series=train & title=loss series=test on two diff graphs, they will always be displayed on the same graph.
That said, when comparing experiments, all graph pairs (i.e. title+series) will be displayed as a single graph, where the diff series are the experiments.
and under that there will be three graphs with title as train test and loss
Like here in the sidebar I am getting three different plots named as loss, train_loss and test_loss
So you want these two on two different graphs ?
It will not create another 100 tasks, they will all use the main Task. Think of it as they "inherit" it from the main process. If the main process never created a task (i.e. no call to Tasl.init) then they will create their own tasks (i.e. each one will create its own task and you will end up with 100 tasks)
logger.report_scalar(title="loss", series="train", iteration=0, value=100)
logger.report_scalar(title="loss", series="test", iteration=0, value=200)
so, if I call Task.init() before that line there is no need of calling Task.init() on line number 92