Skip to content

Conversation

@LennartPurucker
Copy link
Collaborator

@LennartPurucker LennartPurucker commented Jul 30, 2025

Issue #, if available:

#4900

Description of changes:

I have added code (including a lot of reactoring) to support parallel predictions.

Example:

from autogluon.tabular import TabularDataset, TabularPredictor

train_data = TabularDataset("https://autogluon.s3.amazonaws.com/datasets/Inc/train.csv")
test_data = TabularDataset("https://autogluon.s3.amazonaws.com/datasets/Inc/test.csv")

predictor = TabularPredictor(label="class", path=str("./ag_path")).fit(
    train_data=train_data,
    time_limit=int(60 * 2),
    presets="best_quality",
    num_bag_folds=2,
    num_bag_sets=1,
    verbosity=2,
    dynamic_stacking=False,
    fit_strategy="parallel",
)

predictor.predict(
    test_data, resource_config=dict(num_cpus=8, num_gpus=1, usage_strategy="parallel")
)
predictor.predict_proba(
    test_data, resource_config=dict(num_cpus=8, num_gpus=1, usage_strategy="parallel")
)

# Also works for the LB
predictor.leaderboard(
    test_data, resource_config=dict(num_cpus=8, usage_strategy="parallel")
)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@github-actions
Copy link

Job PR-5265-55c9cbe is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-5265/55c9cbe/index.html

@Innixma Innixma added module: tabular enhancement New feature or request labels Jul 31, 2025
@Innixma Innixma added this to the 1.5 Release milestone Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request module: tabular

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants