Practical overview
When it fits
Use Mango when you want a Python-based search over classifier settings and can express model performance or another target as an objective function.
Who it is for
- Python practitioners tuning machine-learning classifiers.
- Researchers and developers who need to search mixed-type model settings using an objective such as cross-validation score.
Documented uses
- Define a candidate parameter space for a classifier.
- Search for settings that maximize or minimize a user-defined objective.
- Evaluate batches of candidate settings in parallel.
Requirements & limits
- Search spaces can combine continuous, discrete and categorical values.
- Integer ranges are treated as ordered continuous variables; list values are treated as unordered categories.
- Mango does not scale or normalize search-space parameters by default.
- The documented scheduler can target local, cluster or cloud infrastructure.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Run Mango’s serial quadratic minimization example
Minimize the example quadratic objective over integer inputs from -10 to 9 using Mango’s Tuner.
Before you start
- Python environment with Mango installed; the README documents installation with pip as
pip install arm-mango.
Steps
Install Mango with the command below.
pip install arm-mangoImport
schedulerandTunerfrommango, and defineparam_space = dict(x=range(-10,10)).Define
@scheduler.serialobjectivedef objective(x): return x * x.Create
tuner = Tuner(param_space, objective)and callresults = tuner.minimize(); inspectbest_paramsandbest_objectivein the returned results.
Expected outcome
The example reports the minimizing input as x=0 and objective value 0.
Guide limitations
- The example uses the integer range -10 through 9; it does not include 10.
- The README provides no Python-version or dependency-version requirements.
Tune K-nearest-neighbor classifier parameters with Mango
Search KNN neighbor-count and algorithm choices using mean cross-validation accuracy as the objective.
Before you start
- Python environment with Mango installed.
- The README example imports scikit-learn datasets, KNeighborsClassifier, and cross_val_score.
Steps
Import the scikit-learn components and Mango’s
Tunerandscheduler.Set the search space to
n_neighbors=range(1, 50)andalgorithm=['auto', 'ball_tree', 'kd_tree', 'brute'].Define a
@scheduler.serialobjective accepting**params; load the breast-cancer dataset, constructKNeighborsClassifier(**params), and return the mean ofcross_val_score(clf, X, y, scoring='accuracy').Create
Tuner(param_space, objective), callmaximize(), and inspectbest_paramsandbest_objective.
Expected outcome
The README says results may vary and reports an example best accuracy of approximately 0.93.
Guide limitations
- The README notes that the best parameters may differ between runs.
- The example searches neighbor counts 1 through 49, not 50.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 15 November 2026
- Original website title
- ARM-software/mango · Official homepage title · retained in its source language

