Ax icon indicating copy to clipboard operation
Ax copied to clipboard

[GENERAL SUPPORT]: where is get_optimization_trace in version 1.0.0?

Open VMLC-PV opened this issue 6 months ago • 7 comments

Question

Is there any equivalent to ax_client.get_optimization_trace in v1.0.0?

I have tried the code below, but neither option worked:

trace = get_trace(client._experiment,client._experiment._optimization_config)
 or 
data = client.summarize()
trace = get_trace_by_arm_pull_from_data(data, ax_client._experiment._optimization_config)

Note that I am running a MOO.

Please provide any relevant code snippet if applicable.


Code of Conduct

  • [x] I agree to follow this Ax's Code of Conduct

VMLC-PV avatar Jun 02 '25 13:06 VMLC-PV

Hello there! You can try the following:

from ax.analysis.plotly.arm_effects import ArmEffectsPlot

client.compute_analyses([ArmEffectsPlot(show_cumulative_best=True)])

The show_cumulative_best argument should draw a line through the best points seen so far for each trial.

Cesar-Cardoso avatar Jun 02 '25 22:06 Cesar-Cardoso

General Kenobi, thank you! Not quite what I was looking for but still useful. The old get_trace would plot the hypervolume in case it is a multi-objective optimization, and this is what I was looking for...

VMLC-PV avatar Jun 03 '25 07:06 VMLC-PV

Got it! We're currently modernizing our plotting stack and that's one we haven't gotten to yet. I'm planning to work on it sometime this week. Will reference this issue in the PR.

Cesar-Cardoso avatar Jun 03 '25 15:06 Cesar-Cardoso

Hey, Did you ever implement something on this?

VMLC-PV avatar Jul 25 '25 08:07 VMLC-PV

Also, do you have any idea when the next planned release is?

VMLC-PV avatar Jul 28 '25 14:07 VMLC-PV

Hey! Sorry I didn't get around to implement this back when you posted it. It's in our backlog and we have it staffed, so you can expect it to be implemented in the next few months. We will update this post when we do.

As to the next Ax release, we're aiming to release version 1.1 in the coming weeks.

Cesar-Cardoso avatar Jul 29 '25 15:07 Cesar-Cardoso

Hey, I forgot about this. Was this resolved in the latest release?

VMLC-PV avatar Sep 17 '25 07:09 VMLC-PV