allegroai / clearml-server

ClearML - Auto-Magical CI/CD to streamline your AI workload. Experiment Management, Data Management, Pipeline, Orchestration, Scheduling & Serving in one MLOps/LLMOps solution
https://clear.ml/docs
Other
364 stars 132 forks source link

Sort plots and images numerically #156

Open oralian opened 1 year ago

oralian commented 1 year ago

Is it possible to sort the images and the plots in the numerical order instead of the alphabetical order? Here's what it looks like (I've hidden the plots and images):

Screenshot from 2022-08-22 12-18-43 Screenshot from 2022-08-22 12-19-03

It's especially for the plots where it's a bit annoying. Thanks! :smile:

jkhenning commented 1 year ago

Hi @aurelien-m , do you mean by the iteration number? As the title/series is a string (and even in your case, always starts with letters, how can we sort it numerically?

oralian commented 1 year ago

Hey, I mean having something 1, something 2, something 3, ... and not something 1, something 10, something 11, ... something 2, something 20, something 21 ... for example.

I have a bunch of graphs, but I'm not seeing them in the correct order. It feels a little strange! Here are my plots for example:

image

So sorting it by iteration could help, it that's possible

jkhenning commented 1 year ago

Well, that would require actually parsing the string and understanding what to sort on, which is too general in the UI, I think.

Are you talking about sorting of the titles list, or of the plots themselves? I think the plots themselves are already sorted by iteration

oralian commented 1 year ago

My plots are not sorted by iteration, you can see them go from 1 to 10 then it continues with 11, 12, .. 2, 20, 21, ... I tried adding an underscore in the title but it didn't change anything. I can try to look how it's sorted in the code, but I'm not sure if this is intended or not

jkhenning commented 1 year ago

This is intended since this is how a lexicographic sort would behave (these are strings, after all).

My plots are not sorted by iteration, you can see them go from 1 to 10 then it continues with 11, 12, ..

That's in the "Find plots" list, as you shared (which is searchable), but is it also in the UI page that simply shows all plots for the task? This page by design shows the last iteration, than the one before, and so on.

oralian commented 1 year ago

Yes it's also in the UI, my plots appear in the same order as the search "Find plots" list. You can see it in the images below, it goes in this order: 0, 1, 10, 11, 12, ... 18, 19, 2, 20, 21, ... and it doesn't match the iterations

Screenshot from 2022-08-23 14-07-44

Screenshot from 2022-08-23 14-07-52

jkhenning commented 1 year ago

Hi @aurelien-m ,

Sorry for the late response. I see the order is only for plots in the same iteration...?