API Reference

The zenkai package is a _core foundation of shared primitives — re-exported at the zenkai root — plus four learning-concern sub-packages. The per-symbol layout is generated from the packages below.

Core primitives (zenkai root)

Shared primitives, importable both as zenkai.<name> and from zenkai._core.

zenkai._core

zenkai._core — shared primitives for the framework, re-exported at the zenkai root.

Sub-packages

zenkai.lm

zenkai.lm — learning machines (learners and the LearningMachine core).

zenkai.nnz

zenkai.nnz — neural-net modules (nn.Module building blocks).

zenkai.optimz

zenkai.optimz — optimizer machinery (objectives/constraints now live in zenkai.nnz).

zenkai.utils

Tensor and parameter utilities: type conversion, gradient context managers, and the memory sub-package for storing batches of samples.