Skip to content

fix spark example#342

Merged
not522 merged 4 commits intooptuna:mainfrom
fritshermans:fix-spark-example
Dec 26, 2025
Merged

fix spark example#342
not522 merged 4 commits intooptuna:mainfrom
fritshermans:fix-spark-example

Conversation

@fritshermans
Copy link
Copy Markdown
Contributor

Motivation

The Spark example does not use Spark's parallelism but calculates one parameter at the time in Spark. The point of the ask-and-tell functionality is to calculate batches of parameters. This PR fixes (#341)

Description of the changes

In the script we now loop over batches and within each batch we calculate parameter candidates in parallel in Spark.

@github-actions
Copy link
Copy Markdown

This pull request has not seen any recent activity.

@github-actions github-actions bot added the stale Exempt from stale bot labeling. label Dec 23, 2025
@not522 not522 self-assigned this Dec 24, 2025
Copy link
Copy Markdown
Member

@not522 not522 left a comment

Choose a reason for hiding this comment

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

Sorry for my late response and thank you for your PR! It's almost LGTM.
I added small comments. Could you check them?

Co-authored-by: Naoto Mizuno <naotomizuno@preferred.jp>
@github-actions github-actions bot removed the stale Exempt from stale bot labeling. label Dec 24, 2025
Copy link
Copy Markdown
Member

@not522 not522 left a comment

Choose a reason for hiding this comment

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

LGTM!

@not522 not522 merged commit 070c58e into optuna:main Dec 26, 2025
1 check passed
@not522 not522 added this to the v4.7.0 milestone Dec 26, 2025
@fritshermans fritshermans deleted the fix-spark-example branch December 26, 2025 11:43
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.

2 participants