dotty-cps-async / rl-logic   0.1.0

Apache License 2.0 GitHub

monadic infrastructure for reinforcement learning.

Scala versions: 3.x
Scala.js versions: 1.x
Scala Native versions: 0.5

rl-logic

A monadic framework for reinforcement learning built on top of dotty-cps-async.

Package

import cps.rl.*

Features

  • Scored Logic Monad - Monadic abstraction for weighted search with scores (CpsScoredLogicMonad)
  • RL Abstractions - Core traits for environments, agents, and models (RLEnvironment, RLAgentBehavior, RLModelControl)
  • Tensor Support - Type-safe tensor operations with scope management (TensorType, TensorScope, TensorRepresentation)
  • Priority Queue Data Structures - Efficient heap implementations including PairingHeap, FingerTree, and scaled variants
  • Cross-Platform - Supports JVM, Scala.js, and Scala Native

Installation

Add to your build.sbt:

libraryDependencies += "io.github.dotty-cps-async" %%% "rl-logic" % "<version>"

Dependencies

License

Apache 2.0