Hi @Lu,
Just for clarification, decision thresholds adjustments should be done on the validation set, not on the test set.
Here are some reminders about the terms used and their use :
- Training set : Used for the actual training of the model(s),
- Validation set : Used for model optimization (hyperparameter fine-tuning, features/threshold selection, ... for example) and model selection,
- Test set : Used for generalization and predictive performance assessment of the selected model on new/unseen data.
Validation set purpose is to help compare and select a model, as well as fine-tuning hyperparameters or decision thresholds.
The test set should not be used in any way during model training and fine-tuning, as it serves as a final unbiased "validation" of your model and final assessment of your model's performances.
You can read more about the distinction between validation and test sets in the following conversations :
If we are seeing "Training" and "Validation" results in the output even when we ... CROSS VALIDATION - VALIDATION COLUMN METHOD
...
On your specific question, if I'm not mistaking, XGBoost is only available for JMP Pro version through an add-in created by @russ_wolfinger, so since it's a functionality added through an add-in, all model tuning options may not be available (like Decision threshold). You can create a Wish on JMP wish list or write a comment about this situation on the page dedicated to XGBoost add-in.
However, if XGBoost is the top performer model, you could :
- Separate your test set from your training/validation data first ! This way, test data is not seen by the model at any step, and you only use test data once your model has fixed hyperparameters and decision threshold.
- Create a K-folds validation column on your training/validation dataset.
- Launch the XGBoost platform (from add-in menu), specify your K-folds column validation :

- Run the XGBoost training, and adjust the decision threshold on validation set:

- Save Prediction Formula and assess performances on test set.
Hope this answer will help you,
Victor GUILLER
"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)