0.2.0 • Published 1 year ago

@grafana/scenes-ml v0.2.0

Weekly downloads
-
License
AGPL-3.0-only
Repository
github
Last release
1 year ago

About @grafana/scenes-ml

This library contains a collection of @grafana/scenes objects which can be added to your Scenes to run interactive, responsive machine learning algorithms directly in the browser.

@grafana/scenes-ml currently contains implementations of the following:

  • forecasting (using the MSTL/ETS algorithms)
  • outlier detection (using the median absolute difference or DBSCAN algorithms)
  • changepoint detection (using either Bayesian Online Changepoint Detection or Autoregressive Gaussian Process Changepoint Detection)

Under the hood, the heavy lifting is largely powered by the augurs library, which runs inside WebAssembly. See that library for more information on the underlying algorithms.

Usage

@grafana/scenes-ml is designed to be used in Grafana app plugins or Grafana core as a standard npm dependency. However, because of the WASM module in a dependency, a couple of changes are required to an app plugin's build process.

  1. Install @grafana/scenes-ml using yarn add @grafana/scenes-ml or npm install @grafana/scenes-ml to add scenes-ml to your dependencies.
  2. If using a plugin, ensure the create-plugin version is up to date by following this guide. This is important to make sure your plugin's Webpack configuration knows how to load the package.
  3. Import components from @grafana/scenes-ml and use as normal!