raven-ml/raven

Modern scientific computing for OCaml

What it solves

Raven provides a complete, native ecosystem for machine learning and scientific computing within the OCaml programming language. It eliminates the need to rely on external Python libraries by offering OCaml-native equivalents for tasks ranging from data manipulation and numerical analysis to neural network training and probabilistic inference.

How it works

Raven is a collection of modular OCaml packages that compose like standard OCaml code. It handles everything from low-level GPU operations and n-dimensional array math to high-level neural network layers and dataframes. Because it is built entirely in OCaml, it integrates directly into the language's type system and build tools, allowing developers to perform complex scientific computing tasks without leaving the OCaml environment.

Who it’s for

This project is for OCaml developers who want to perform machine learning, data analysis, or scientific research without switching to Python. It is ideal for those who prefer the safety and performance of OCaml and want to build scientific applications that leverage GPU acceleration and modern ML techniques.

Highlights

  • Comprehensive toolkit covering arrays, neural networks, dataframes, and plotting.
  • Native GPU support and automatic differentiation.
  • Modular design: install the full ecosystem or just the specific packages you need.
  • Includes tools for experiment tracking, interactive notebooks, and probabilistic modeling.
  • Built with a focus on OCaml-native performance and type safety.

Related

  • Project
  • Project
  • Project
  • Project
  • Project