OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Mango

Mango is an open-source Python library for gradient-free hyperparameter optimization of machine-learning classifiers. It searches continuous, discrete and categorical parameter spaces and can evaluate objective functions in parallel.

Independent OpenViST project profile, based on linked sources.

Mango — Classifier tuning with parameter spaces compatible with scikit-learn conventions
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Install Mango with the command below.

    Documented command
    pip install arm-mango
  2. Import scheduler and Tuner from mango, and define param_space = dict(x=range(-10,10)).

  3. Define @scheduler.serial objective def objective(x): return x * x.

  4. Create tuner = Tuner(param_space, objective) and call results = tuner.minimize(); inspect best_params and best_objective in 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.
Source-based practical guide

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

  1. Import the scikit-learn components and Mango’s Tuner and scheduler.

  2. Set the search space to n_neighbors=range(1, 50) and algorithm=['auto', 'ball_tree', 'kd_tree', 'brute'].

  3. Define a @scheduler.serial objective accepting **params; load the breast-cancer dataset, construct KNeighborsClassifier(**params), and return the mean of cross_val_score(clf, X, y, scoring='accuracy').

  4. Create Tuner(param_space, objective), call maximize(), and inspect best_params and best_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.
Evidence and transparency

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