pr_ml/
lib.rs

1//! # `pr-ml` library crate
2//!
3//! If you are reading this, you are reading the documentation for the `pr-ml` library crate. For the cli, kindly refer to the README file.
4
5#![deny(missing_docs)]
6#![warn(clippy::all, clippy::nursery, clippy::pedantic, clippy::cargo)]
7
8use nalgebra::SMatrix;
9
10/// Type alias for a static f32 matrix, primarily used for weights.
11pub type Matrix<const R: usize, const C: usize, T = f32> = SMatrix<T, R, C>;
12
13/// Type alias for a static f32 row vector, primarily used for inputs, outputs, and biases.
14pub type RowVector<const N: usize, T = f32> = Matrix<1, N, T>;
15
16pub mod mnist;
17pub mod neural;
18pub mod svm;
19pub mod util;