Metadata-Version: 2.4
Name: SKSurrogate
Version: 0.8.0
Summary: scikit-learn-native surrogate tuner for hyperparameter and AutoML pipeline search; a drop-in replacement for BayesSearchCV, with a small core install and opt-in extras.
Home-page: https://github.com/mghasemi/sksurrogate
Author: Mehdi Ghasemi
Author-email: mehdi.ghasemi@gmail.com
License: MIT
Project-URL: Source, https://github.com/mghasemi/sksurrogate
Project-URL: Documentation, https://sksurrogate.readthedocs.io/
Project-URL: Zenodo (software), https://doi.org/10.5281/zenodo.23631823
Project-URL: Zenodo (benchmark data), https://doi.org/10.5281/zenodo.23629024
Keywords: hyperparameter optimization,surrogate,scikit-learn,AutoML,Bayesian optimization,trust region,evolutionary optimization,drift detection,Auto Machine Learning,Optimization,Surrogate Optimization,Machine Learning,Regression,Random Search
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.10
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: numpy>=1.22
Requires-Dist: scipy>=1.10
Requires-Dist: pandas
Requires-Dist: scikit-learn>=1.5
Requires-Dist: joblib>=1.2
Requires-Dist: peewee
Requires-Dist: tqdm>=4.66.3
Provides-Extra: lightgbm
Requires-Dist: lightgbm>=4.6; extra == "lightgbm"
Provides-Extra: xgboost
Requires-Dist: xgboost>=2.1; extra == "xgboost"
Provides-Extra: rgf
Requires-Dist: rgf-python>=3.12.0; extra == "rgf"
Provides-Extra: gbm
Requires-Dist: lightgbm>=4.6; extra == "gbm"
Requires-Dist: xgboost>=2.1; extra == "gbm"
Provides-Extra: estimators
Requires-Dist: lightgbm>=4.6; extra == "estimators"
Requires-Dist: xgboost>=2.1; extra == "estimators"
Requires-Dist: rgf-python>=3.12.0; extra == "estimators"
Requires-Dist: category-encoders; extra == "estimators"
Provides-Extra: sensitivity
Requires-Dist: SALib; extra == "sensitivity"
Provides-Extra: explain
Requires-Dist: eli5; extra == "explain"
Requires-Dist: skrebate; extra == "explain"
Provides-Extra: imbalance
Requires-Dist: imbalanced-learn; extra == "imbalance"
Provides-Extra: categorical
Requires-Dist: category-encoders; extra == "categorical"
Provides-Extra: plots
Requires-Dist: matplotlib; extra == "plots"
Provides-Extra: dask
Requires-Dist: dask[distributed]>=2024.1; extra == "dask"
Provides-Extra: api
Requires-Dist: fastapi>0.109; extra == "api"
Requires-Dist: uvicorn[standard]>=0.11.7; extra == "api"
Requires-Dist: python-multipart>=0.0.31; extra == "api"
Provides-Extra: ui
Requires-Dist: fastapi>0.109; extra == "ui"
Requires-Dist: uvicorn[standard]>=0.11.7; extra == "ui"
Requires-Dist: python-multipart>=0.0.31; extra == "ui"
Provides-Extra: benchmark
Requires-Dist: openml<0.16,>=0.15; extra == "benchmark"
Requires-Dist: optuna; extra == "benchmark"
Requires-Dist: scikit-posthocs>=0.9; extra == "benchmark"
Provides-Extra: automl
Requires-Dist: autogluon.tabular; extra == "automl"
Requires-Dist: flaml[automl]; extra == "automl"
Provides-Extra: forecasting
Provides-Extra: mcp
Requires-Dist: httpx>=0.27; extra == "mcp"
Requires-Dist: mcp<3,>=2.3; extra == "mcp"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pygments; extra == "test"
Requires-Dist: hypothesis>=6.100; extra == "test"
Provides-Extra: all
Requires-Dist: lightgbm>=4.6; extra == "all"
Requires-Dist: xgboost>=2.1; extra == "all"
Requires-Dist: rgf-python>=3.12.0; extra == "all"
Requires-Dist: category-encoders; extra == "all"
Requires-Dist: SALib; extra == "all"
Requires-Dist: eli5; extra == "all"
Requires-Dist: skrebate; extra == "all"
Requires-Dist: imbalanced-learn; extra == "all"
Requires-Dist: matplotlib; extra == "all"
Requires-Dist: dask[distributed]>=2024.1; extra == "all"
Requires-Dist: fastapi>0.109; extra == "all"
Requires-Dist: uvicorn[standard]>=0.11.7; extra == "all"
Requires-Dist: python-multipart>=0.0.31; extra == "all"
Requires-Dist: openml<0.16,>=0.15; extra == "all"
Requires-Dist: optuna; extra == "all"
Requires-Dist: scikit-posthocs>=0.9; extra == "all"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

|CI| |Doc| |Licence|

|Logo|

SKSurrogate
==================
**Lightweight, maintained, scikit-learn-native surrogate tuner — a drop-in replacement for
``BayesSearchCV``.**

``SKSurrogate`` searches expensive objectives (hyperparameters, AutoML pipelines) with a
surrogate response surface built on ``scikit-learn``. The tuner is a ``BaseSearchCV``
subclass, so it plugs into existing scikit-learn code with the same ``fit``/``predict``
contract as ``GridSearchCV``, ``RandomizedSearchCV``, or ``BayesSearchCV`` — no new estimator
API, no framework lock-in.

Why not Optuna / vanilla BO?
----------------------------
- **Inequality constraints** (``ineq``): constrain the search region directly, rather than
  through penalty tricks or rejection sampling.
- **Trust-region contraction dynamics** (``contraction=0.9``): TuRBO/DYCORS-style radius
  contraction that keeps the search focused as it converges, scaling to medium- and
  high-dimensional spaces.
- **scikit-learn-native**: the tuner *is* a ``BaseSearchCV`` — it composes with pipelines,
  cross-validation, and the rest of the scikit-learn ecosystem.
- **Drift-aware** (see below): it records the identity of the data it optimized, so you can
  detect drift before inference.

The hybrid loop
---------------
Two cooperating search layers are the centerpiece of the package:

- **Evolutionary pipeline selector** (``EOA``): explores the space of transformers and
  estimators to assemble candidate pipelines.
- **Local surrogate tuner** (``SurrogateRandomCV``): fits a response surface to the best
  candidates and focuses evaluations where the surrogate predicts improvement.

This hybrid — global structure search plus local surrogate refinement — is what makes
``SKSurrogate`` a pipeline *designer* rather than just a hyperparameter tuner.

Since v0.2 the default response surface is a stock, un-tuned RBF Gaussian process (chosen over
the previous cubic Hilbert polynomial on the evidence of the equal-budget benchmark suite); a
custom regressor based on Hilbert Space techniques is still available (``HilbertRegressor``),
and all ``scikit-learn`` regressors are accepted for optimization.

Understand what you tuned
-------------------------
Once a run has finished, ``SKSurrogate`` explains *what* the fitted model depends on — not just
*where* the search stopped:

- **Model explanations**: permutation importance, partial dependence, and accumulated local
  effects for a stored model bundle show which features drive its predictions globally, while
  an exact row-level explanation reconstructs one prediction from its baseline as ordered
  feature contributions. Every response carries the explained quantity, the model's
  provenance, a checked reconstruction status, an out-of-distribution flag for rows, and
  grouped/stability-checked importance for correlated features. Available through the
  control plane (``explain``, ``ale`` and ``explain/row`` endpoints) and in the web UI; see
  the `control-plane guide <https://sksurrogate.readthedocs.io/en/latest/controlplane.html>`_
  and the `scientific workflow guide <https://sksurrogate.readthedocs.io/en/latest/mltrace.html>`_.
- **Paired model comparison**: refits stored bundles on one shared fold list and reports
  oriented deltas with percentile bootstrap intervals, Holm-adjusted Wilcoxon p-values,
  Cliff's ordinal effect size, a score/complexity/cost Pareto front and calibration — with
  the exploratory-selection caveat stated in the payload. See the
  `model-comparison guide <https://sksurrogate.readthedocs.io/en/latest/model-comparison.html>`_.
- **Sensitivity analysis**: Sobol, Morris, and moment-independent δ indices quantify which
  inputs dominate output variance — useful for pruning expensive models or diagnosing a tuned
  pipeline. See the `sensitivity analysis guide <https://sksurrogate.readthedocs.io/en/latest/sensitivity.html>`_.
- **Data diagnostics before a run**: the Data page profiles a registered partition —
  distributions, target composition, target/feature associations, collinearity, identifier
  and leakage flags, Little's MCAR, Anderson–Darling normality, bootstrap effect sizes,
  half-sample stability, partition-to-partition drift — and exports the same tables as a
  Markdown report. The Experiments page repeats the actionable findings as advisory
  pre-flight checks, so a score is never read without its data caveats. See the
  `monitoring guide <https://sksurrogate.readthedocs.io/en/latest/monitoring.html>`_.

All of these are descriptive analyses: the model-attribution views show how the learned response
depends on its inputs, and the data diagnostics describe the partition — none of them is a causal claim.

Observe what a run did
----------------------
Search progress goes through the standard library ``logging`` module (``SKSurrogate`` loggers, with
``WARNING``/``ERROR`` for degraded surrogate fits, stagnation and failures), and the core exposes
per-trial telemetry: a per-refit ``fit_score``, ``init``/``explore``/``surrogate_exploit`` sampling
tags, a ``callbacks`` hook that delivers one event per evaluated candidate, and a JSON-safe
``to_audit_dict()`` export. The control plane captures those records per background job into a
**Logs** page with severity, dataset/task and research-project filters — see the
`telemetry contract <https://sksurrogate.readthedocs.io/en/latest/telemetry.html>`_,
the `log endpoints <https://sksurrogate.readthedocs.io/en/latest/controlplane.html>`_
and the `UI manual <https://sksurrogate.readthedocs.io/en/latest/ui-manual.html>`_.

Serve what you built
--------------------
A finished run leaves a portable ``ModelBundle`` behind: a schema-checked input contract, a
``prediction``/``model_version``/``request_id`` output frame, and atomic CSV writes — scoreable
in batch through ``SKSurrogate.predict_batch`` or the ``sksurrogate-batch-predict`` CLI, or
online through the dependency-free ``SKSurrogate.serve`` WSGI adapter. In the control plane you
declare which model a task serves: a **serving pin** naming either an exact model version
(frozen, later promotions leave it alone) or a registry alias (follows promote/rollback), after
which clients score through ``POST /api/serving/{task}/predict`` without naming a model at all
(409 while nothing is served). The web UI states the same declaration: a
``Serving <version> · <task>`` pill in the top bar while a model is served, and a **Serving**
card on the Inference page that sets, replaces and stops it. See the
`inference guide <https://sksurrogate.readthedocs.io/en/latest/inference.html>`_ and the
`control-plane guide <https://sksurrogate.readthedocs.io/en/latest/controlplane.html>`_.

Trained bundles can also be combined into one model with scikit-learn's own meta-estimators —
voting, averaging, stacking, bagging and boosting over a selection of models — from the
library (``SKSurrogate.ensembling``), the ``/api/ensembles`` routes or the web UI's
**Ensembles** page. The result is an ordinary bundle, so the same evaluation, registry and
serving paths apply to it; its reported scores carry the caveat that member selection was made
on the same data.

A combination can then be refined: every member's probabilities can be **calibrated**
(Platt/isotonic, with the Brier score and log loss recorded before and after on identical
folds), the member **weights can be fitted** on out-of-fold member output (a convex simplex
least-squares, a random search over the task's metric, or Caruana greedy selection), and the
whole procedure can be re-priced by an **honest nested estimate** that refits the members, the
calibration and the weight search inside every outer fold. See the
`combining-models guide <https://sksurrogate.readthedocs.io/en/latest/ensembles.html>`_.

Quick start
-----------
``SurrogateRandomCV`` is a drop-in for ``RandomizedSearchCV``; ranges can be written as plain
tuples (integers or floats) and lists (categorical values)::

    from sklearn.svm import SVC
    from SKSurrogate import SurrogateRandomCV

    search = SurrogateRandomCV(
        SVC(),
        param_distributions={"C": (1e-3, 10.0), "kernel": ["poly", "rbf"], "degree": (1, 4)},
        n_iter=30,
    ).fit(X, y)
    search.best_params_, search.best_score_

For automatic pipeline design, ``AML(preset="classification").fit(X, y)`` (or
``preset="regression"``) needs no search configuration. For pandas DataFrames,
the preset automatically fits numeric, categorical, datetime, and text
preprocessing inside each cross-validation fold when ``cat_cols`` is omitted.
Array-like inputs should already be numeric; ``cat_cols`` retains the explicit
categorical-encoding path. ``fit(X, y, strategy="eoa")`` selects evolutionary
search.

More workflows are covered in the
`surrogate-search guide <https://sksurrogate.readthedocs.io/en/latest/surrogate.html>`_,
`preprocessing guide <https://sksurrogate.readthedocs.io/en/latest/dataproc.html>`_,
`scientific workflow guide <https://sksurrogate.readthedocs.io/en/latest/mltrace.html>`_,
`experiment design guide <https://sksurrogate.readthedocs.io/en/latest/experiment-design.html>`_,
`research projects guide <https://sksurrogate.readthedocs.io/en/latest/research-projects.html>`_,
and `monitoring guide <https://sksurrogate.readthedocs.io/en/latest/monitoring.html>`_.
For the API and UI, see the
`control-plane guide <https://sksurrogate.readthedocs.io/en/latest/controlplane.html>`_
`UI manual <https://sksurrogate.readthedocs.io/en/latest/ui-manual.html>`_ and
`worked example with screenshots <https://sksurrogate.readthedocs.io/en/latest/walkthrough.html>`_.

Run the web UI and API with Docker
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

A prebuilt image of the current release is published on Docker Hub as
``mghasemi/sksurrogate`` (`overview <https://hub.docker.com/r/mghasemi/sksurrogate/>`_)::

    docker run --rm -p 8013:8013 -v sksurrogate-data:/data mghasemi/sksurrogate:latest   # UI and API on http://localhost:8013

Datasets, experiments, logs and model bundles live in the named volume mounted at
``/data``; the image ships no user data. On first use ``docker run`` pulls the image
automatically; to upgrade an existing deployment to a new release, re-pull first —
``run`` will not refresh a cached copy (or pin a version tag such as ``0.8.0``)::

    docker pull mghasemi/sksurrogate:latest

From a source checkout (Docker with Compose required)::

    docker compose --profile prod up --build -d   # UI and API on http://localhost:8013
    docker compose --profile dev up --build       # hot reload; UI on http://localhost:5174

Set ``SKSURROGATE_PORT`` to change the port and ``SKSURROGATE_API_KEY`` to
require an API key; for any published port also set
``SKSURROGATE_REQUIRE_AUTH=1`` so the container refuses to start without a key.
With ``SKSURROGATE_REQUIRE_AUTH`` enabled the UI asks for a username and
password instead, and every dataset, bundle and project belongs to an account
that can share it with others; bootstrap the first administrator with
``SKSURROGATE_ADMIN_USERNAME``/``SKSURROGATE_ADMIN_PASSWORD`` or
``python -m api.auth_cli create-admin``, then create per-user API keys in
**Settings → API keys**. Data persists in the ``sksurrogate-data`` volume. See
the `control-plane guide <https://sksurrogate.readthedocs.io/en/latest/controlplane.html>`_
and the `authentication and sharing chapter
<https://sksurrogate.readthedocs.io/en/latest/auth-and-sharing.html>`_ for details.

Benchmarks
----------
The surrogate-guided search is validated against strong HPO/AutoML baselines at **equal
evaluation budgets** (candidate-model evaluations, not wall-clock). Mean final cross-validated
accuracy over 7 seeds at a budget of 30 evaluations (full protocol, figures, and the raw-results
archive DOI `10.5281/zenodo.23629024 <https://doi.org/10.5281/zenodo.23629024>`_ are in
`docs/benchmarks.md <docs/benchmarks.md>`_):

+------------+----------------------------+--------------+--------+------------+
| dataset    | SKSurrogate (RBF-GP, v0.2) | no surrogate | random | Optuna-TPE |
+============+============================+==============+========+============+
| arrhythmia | 0.7020                     | 0.6910       | 0.6941 | **0.7036** |
+------------+----------------------------+--------------+--------+------------+
| credit-g   | 0.7423                     | 0.7391       | 0.7405 | **0.7436** |
+------------+----------------------------+--------------+--------+------------+
| galaxy3    | 0.6473                     | 0.6448       | 0.6484 | **0.6507** |
+------------+----------------------------+--------------+--------+------------+
| ionosphere | **0.9352**                 | 0.9347       | 0.9347 | 0.9337     |
+------------+----------------------------+--------------+--------+------------+
| optdigits  | 0.9403                     | 0.9392       | 0.9380 | **0.9405** |
+------------+----------------------------+--------------+--------+------------+
| spambase   | 0.9280                     | 0.9269       | 0.9272 | **0.9286** |
+------------+----------------------------+--------------+--------+------------+

The RBF-GP response surface matches the top baseline within ~0.002 on every dataset and edges
it out on the hardest case (ionosphere); the with-vs-without surrogate ablation
(``srs-no-surrogate``) shows the surrogate raises or matches final accuracy on every dataset.
At the extended budget of 60 evaluations, SKSurrogate (RBF-GP) leads all six datasets.
Median-evaluations-to-target and seed-averaged best-so-far curves are in the benchmark report.

Optimize with confidence: detect drift before inference
-------------------------------------------------------
``SKSurrogate`` records a deterministic dataset fingerprint and a JSON-serializable schema for
each tracked dataset. Each call to ``mltrack.register_data(...)`` stores dataset metadata,
including the target column, row count, column names, dtypes, nullability, and categorical
values. This lets a run be identified and later compared against a different dataset or a
refreshed training sample — a differentiator that Optuna, TPOT, and SMAC all lack, because they
ignore data identity entirely.

The tracker also exposes ``validate_data(...)`` and ``validate_prediction_data(...)`` to compare
incoming data against the stored schema before training or inference. By default the checks are
strict: missing columns, reordered columns, dtype mismatches, and unknown categorical values
fail with actionable errors. For compatibility workflows, these checks can be relaxed explicitly
with ``missing_columns='ignore'`` or ``unknown_categories='ignore'``.

The intended workflow is:

1. Register the training dataset with ``mltrack.register_data(frame, target)``.
2. Validate training data before fitting with ``tracker.validate_data(frame, target=...)``.
3. Validate prediction inputs with ``tracker.validate_prediction_data(frame)`` before calling
   ``predict`` on a model or pipeline.
4. Use the stored ``dataset_fingerprint`` and ``dataset_schema`` metadata for reproducibility,
   drift checks, and auditability.

Installation
------------
From PyPI::

    pip install sksurrogate

or from source (development)::

    pip install git+https://github.com/mghasemi/sksurrogate.git

The base install is intentionally small: it pulls seven packages
(``numpy``, ``scipy``, ``pandas``, ``scikit-learn``, ``joblib``, ``peewee``,
``tqdm``) and nothing compiled beyond scikit-learn. Measured on Python 3.12,
a cold resolveless install takes ~7 s / 250 MB of site-packages, and
``import SKSurrogate`` takes ~0.55 s.

Optional extras
---------------
Every other backend is imported lazily and installed through an extra. Naming a
component whose backend is absent raises an error that names the extra::

    SKSurrogate needs the optional package 'xgboost' for the XGBoost estimator, but it is not installed.
    Install it with: pip install "sksurrogate[xgboost]"

.. list-table::
   :header-rows: 1

   * - Extra
     - Adds
     - Needed for
   * - ``[lightgbm]`` / ``[xgboost]`` / ``[rgf]``
     - one boosting backend each
     - the corresponding catalog rows
   * - ``[gbm]``
     - lightgbm + xgboost
     - both tree-boosting families
   * - ``[estimators]``
     - gbm + rgf + category-encoders
     - the full estimator library
   * - ``[sensitivity]``
     - SALib
     - ``SensAprx`` (Sobol / Morris / delta)
   * - ``[explain]``
     - eli5, skrebate
     - permutation-importance and ReliefF/SURF feature weights
   * - ``[imbalance]``
     - imbalanced-learn
     - sampler steps in a pipeline
   * - ``[categorical]``
     - category-encoders
     - ``cat_cols`` encoding
   * - ``[plots]``
     - matplotlib
     - diagnostic plots
   * - ``[api]`` / ``[ui]``
     - FastAPI, uvicorn, python-multipart
     - the control-plane API and web UI (see the
       `guide <https://sksurrogate.readthedocs.io/en/latest/controlplane.html>`_)
   * - ``[dask]``
     - dask[distributed]
     - the distributed execution backend
   * - ``[all]``
     - every extra above
     - CI, Docker, "just make everything work" (~938 MB)
   * - ``[mcp]``
     - httpx, the MCP Python SDK
     - the agent-facing MCP server (console script ``sksurrogate-mcp``). Kept
       out of ``[all]`` so container images stay SDK-free; see the
       `MCP chapter <https://sksurrogate.readthedocs.io/en/latest/mcp-server.html>`_

``[automl]`` (AutoGluon + PyTorch) is kept separate on purpose: it is multi-GB
and only used by the benchmark studies.

Dependencies
----------------
``SKSurrogate`` depends on `NumPy <http://www.numpy.org/>`_,
`scipy <https://www.scipy.org/>`_, and `scikit-learn <https://scikit-learn.org/stable/>`_,
for its main functionalities, plus `pandas <https://pandas.pydata.org/>`_,
`joblib <https://joblib.readthedocs.io/>`_, `peewee <https://github.com/coleifer/peewee>`_
(the run tracker's SQLite ORM) and `tqdm <https://github.com/tqdm/tqdm>`_.
Everything else — `matplotlib <https://matplotlib.org/>`_,
`SALib <https://github.com/SALib/SALib>`_, LightGBM, XGBoost, RGF, eli5,
skrebate, imbalanced-learn, category-encoders — is an optional extra, imported
only by the code path that uses it.

Documentation
----------------
The documentation is produced by `Sphinx <http://www.sphinx-doc.org/en/stable/>`_ and is intended to cover code usage
as well as a bit of theory to explain each method briefly.
For more details refer to the documentation at `sksurrogate.rtfd.io <http://sksurrogate.readthedocs.io/>`_.

License
================
This code is distributed under `MIT license <https://en.wikipedia.org/wiki/MIT_License>`_:

MIT License
----------------

    Copyright (c) 2019--2026 Mehdi Ghasemi

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.

.. |Logo| image:: ./docs/images/funnel.png
.. |CI| image:: https://github.com/mghasemi/sksurrogate/actions/workflows/ci.yml/badge.svg?branch=master
    :target: https://github.com/mghasemi/sksurrogate/actions/workflows/ci.yml
.. |Doc| image:: https://readthedocs.org/projects/sksurrogate/badge/?version=latest
    :target: https://sksurrogate.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status
.. |Licence| image:: https://img.shields.io/badge/license-MIT-blue.svg
   :target: https://github.com/mghasemi/sksurrogate/blob/master/LICENSE
