Skip to content

Add XGBoost classifier and regressor to the Ensemble tool - #2144

Open
anuprulez wants to merge 3 commits into
bgruening:masterfrom
anuprulez:add-xgboost
Open

anuprulez wants to merge 3 commits into
bgruening:masterfrom
anuprulez:add-xgboost

Conversation

@anuprulez

Copy link
Copy Markdown
Collaborator

No description provided.

@bgruening bgruening added the tool-bot:review ask gxy-tool-bot to review a pr label Nov 27, 2026
@bgruening
bgruening deployed to fork-review November 27, 2026 21:44 — with GitHub Actions Active
@github-actions github-actions Bot removed the tool-bot:review ask gxy-tool-bot to review a pr label Nov 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Tool Review: tools/sklearn/

Summary: 🔴 2 critical · 🟡 8 warning(s) · 🔵 2 suggestion(s)


🔴 Critical

[validation] ensemble.xml:495

planemo lint failed (Lint tool-list (3.11)) with ERROR (URLInaccessible): Error '404 Client Error: Not Found for url: https://xgboost.readthedocs.io/en/release_3.4.0/parameter.html'.

Suggestion: Update the URL in <help> to https://xgboost.readthedocs.io/en/latest/parameter.html or https://xgboost.readthedocs.io/en/stable/parameter.html.

[security_bugs] keras_train_and_eval.py:182-183

In _evaluate_keras_and_sklearn_scores, when sk_scoring["primary_scoring"] == "default" and not return_predictions, line 183 executes return scores (a single dict), whereas all other return paths (lines 202-205) return a 3-tuple (scores, predictions, y_true) or (scores, None, None). The caller at line 441 unpacks scores, predictions, y_true = _evaluate_keras_and_sklearn_scores(...), which will raise a ValueError (not enough values to unpack / unpacking dict keys) whenever primary_scoring is "default" and outfile_y_true is unset.

Suggestion: Change line 183 to return scores, None, None.

🟡 Warning

[security_bugs] search_model_validation.py:630

At line 579, optimizer is reassigned from the string "skopt.BayesSearchCV" to the class BayesSearchCV. The subsequent check at line 630 (if optimizer == "skopt.BayesSearchCV" and isinstance(options["scoring"], dict):) is therefore always False, disabling the fallback that prevents BayesSearchCV from receiving an unsupported multimetric dict scoring.

Suggestion: Check if optimizer is BayesSearchCV and isinstance(options["scoring"], dict): (or check selected_search_algo == "skopt.BayesSearchCV").

[brittleness] model_validation.xml:39

The embedded Python script imports from distutils.version import LooseVersion as Version. Because main_macros.xml specifies python==3.12 (where distutils was removed from the standard library), this relies on setuptools providing a deprecated distutils shim, whereas other scripts (search_model_validation.py, stacking_ensembles.py, train_test_split.py) have already migrated to packaging.version.Version.

Suggestion: Replace from distutils.version import LooseVersion as Version with from packaging.version import Version.

[test_coverage] estimator_attributes.xml:167

Test 8 specifies <output name="outfile" value="get_params.tabular" /> instead of file="get_params.tabular". Galaxy ignores value= on <output>, so the test does not verify the output content against test-data/get_params.tabular.

Suggestion: Change value="get_params.tabular" to file="get_params.tabular" ftype="tabular".

[brittleness] main_macros.xml:178

Several boolean <param> definitions in main_macros.xml (lines 178, 857, 864, 865, 871, 873, 875) and in tool XMLs (pre_process.xml:114, clf_metrics.xml:103,190,226,241, numeric_clustering.xml:135,147,149, svm.xml:101,106, discriminant.xml:79,88, pairwise_metrics.xml) have a typo falsevalue="boolflase" instead of falsevalue="boolfalse".

Suggestion: Replace boolflase with boolfalse across main_macros.xml and the affected tool XMLs.

[brittleness] pre_process.xml:117

<data format="tabular" name="outfile_transform" from_work_dir="./output" /> declares from_work_dir="./output", while the configfile script writes directly to "$outfile_transform". Additionally, when input_type.selected_input_type == "sparse", MatrixMarket text output is written with format="tabular" rather than txt.

Suggestion: Remove from_work_dir="./output" and add a <change_format> rule to set format="txt" when input_type.selected_input_type == "sparse".

[conventions] association_rules.xml:1

association_rules.xml omits profile="@PROFILE@" (linted as ToolProfileLegacy: targeting 16.01), and sparse.xml:1 hardcodes profile="20.05" instead of @PROFILE@.

Suggestion: Add/update profile="@PROFILE@" on both tools to match the rest of the suite (24.2).

[test_coverage] association_rules.xml:47

Several <test> blocks across the suite omit expect_num_outputs: association_rules.xml (lines 47, 57, 67, 77), label_encoder.xml (lines 29, 41), train_test_split.xml (lines 181, 197, 213, 228, 247, 267), estimator_attributes.xml (lines 123, 128, 133, 138, 143, 148, 159, 164), clf_metrics.xml (lines 263–561), keras_model_config.xml (lines 627, 701, 732, 818, 849), and lightgbm.xml (line 178).

Suggestion: Add explicit expect_num_outputs="..." attributes to every <test> element.

[test_coverage] ml_visualization_ex.xml:199

Image outputs in ml_visualization_ex.xml (e.g., ml_vis05.png, ml_vis06.png, ml_confusion_viz.png) only use compare="sim_size" (with delta="10000" on ml_vis06.png) and lack ftype="png" or image-content assertions (compare="image_diff").

Suggestion: Use Galaxy's image comparison (compare="image_diff") and specify ftype="png" on PNG test outputs.

🔵 Suggestion

[conventions] svm.xml:244

Several <help> links point to mismatched scikit-learn documentation pages: svm.xml:244 links to modules/neighbors.html instead of modules/svm.html, and regression_metrics.xml:232 and feature_selection.xml:469 link to #classification-metrics.

Suggestion: Update those documentation URLs to the corresponding SVM, regression metrics, and feature selection pages.

[conventions] main_macros.xml:1

Across the suite, tools use version="@VERSION@" instead of @TOOL_VERSION@+galaxy@VERSION_SUFFIX@, <command> with <expand macro="macro_stdio"/> instead of detect_errors="aggressive", reStructuredText <help> instead of format="markdown", and omit <xref type="bio.tools">scikit-learn</xref>.

Suggestion: Consider modernizing these conventions when making the next major suite update.

This branch was successfully deployed

1 active deployment
fork-review — af9c9604 Deployed Nov 27, 2026 by bgruening via Review fork PR #30
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