LightOnML is a high level machine learning-oriented library that allows to perform nonlinear random projections on LightOn’s optical processing units (OPUs). LightOn’s OPUs are available through LightOn’s Cloud service.

The code is open source, released under Apache 2.0 License. It is developed for Python 3, with interfaces for scikit-learn and pytorch to offer to ML researchers and practitioners a familiar and user-friendly environment.

The companion lightonopu library offers a general interface to the OPU, through the OPU class, with compatibility with NumPy arrays and PyTorch tensors.