Skip to content

Multi-task generator uses _id.#289

Merged
RemiLehe merged 9 commits intomainfrom
multitask_uses_id
Mar 4, 2026
Merged

Multi-task generator uses _id.#289
RemiLehe merged 9 commits intomainfrom
multitask_uses_id

Conversation

@shuds13
Copy link
Copy Markdown
Member

@shuds13 shuds13 commented Dec 11, 2025

ax_trial_id and arm_name are not shared externally.

Note: this generator sometimes fails to produce points when a suggest can be for more points than are in the buffer. To work reliably with libEnsemble, this should be able to generate more points to fill out the request. Created issue #295.

  • Check in tests
  • Check in examples
  • Check in libEnsemble (using multitask gen). Including with a previous History read in.
  • Lets add 'returns_id: bool = True' to other generators also in this branch. Check all that issue _id.
  • Agree on _id policy for unknown points (do they get _id internally - increment _id or do new points start at 0).

When previous points are given as a history, these are added to the Ax experiment internally, and then procedes as if a new run (sobol phase).

Note, that when a history is read into gen, the new points can be enumerated from 0 or from the number of history points. I have enumerated from zero.

So suggested points after that will provide _ids that do not start at zero.

ax_trial_id and arm_name are not shared externally.
arms.append(
Arm(parameters=params, name=param_to_name[arm.signature])
)
self._next_id += 1
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want this, for unknown points.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be used as a quick way to tell if covered sample, and dont need more sobol points.

Currently I just start a restart with sobol points.

@shuds13 shuds13 requested a review from jlnav February 12, 2026 17:57
@shuds13
Copy link
Copy Markdown
Member Author

shuds13 commented Feb 28, 2026

Note that AxClientGenerator with Ax 0.5.0 does not work with numpy 2.4+ or pandas 3+

#270 (comment)

* Update AxClientGenerator to work with vocs

* Ax client does not work with pandas 3
@shuds13 shuds13 requested a review from RemiLehe February 28, 2026 02:23
@RemiLehe RemiLehe merged commit 29fdf76 into main Mar 4, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants