Skip to content

Add Hyperparameter Search Support for Tree-based Models#27

Merged
chcwww merged 47 commits into
ntumlgroup:masterfrom
chcwww:hyperparameter
May 12, 2026
Merged

Add Hyperparameter Search Support for Tree-based Models#27
chcwww merged 47 commits into
ntumlgroup:masterfrom
chcwww:hyperparameter

Conversation

@chcwww
Copy link
Copy Markdown
Contributor

@chcwww chcwww commented Feb 10, 2026

What does this PR do?

This PR adds a Python tool for efficient hyperparameter search on tree-based models.
The tool allows users to configure hyperparameters across four stages (TF-IDF, tree, linear, and predict) and returns cross-validation results evaluated using specified metrics.
We also introduce prob_A, which is used in the probability estimation function for binary classification: sigmoid(prob_A * decision_value_matrix).

Test CLI & API (bash tests/autotest.sh)

Test APIs used by main.py.

  • Test Pass
    • (Copy and paste the last outputted line here.)
  • Not Applicable (i.e., the PR does not include API changes.)

Note

After #14, the results for OVR are no longer stable, as the classifiers may be trained in a different order.

Check API Document

If any new APIs are added, please check if the description of the APIs is added to API document.

  • API document is updated (linear, nn)
  • Not Applicable (i.e., the PR does not include API changes.)

Test quickstart & API (bash tests/docs/test_changed_document.sh)

If any APIs in quickstarts or tutorials are modified, please run this test to check if the current examples can run correctly after the modified APIs are released.

@chcwww chcwww requested review from a team and cjlin1 as code owners February 10, 2026 07:01
@chcwww chcwww added enhancement New feature or request model/linear documentation Improvements or additions to documentation labels May 12, 2026
Eleven1Liu
Eleven1Liu previously approved these changes May 12, 2026
@chcwww chcwww merged commit 9b446d4 into ntumlgroup:master May 12, 2026
1 check passed
@Eleven1Liu Eleven1Liu added the release PyPI release tag is in this PR label May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request model/linear release PyPI release tag is in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants