cmac_rust 0.1.1

CMAC (Cerebellar Model Articulation Controller) utilities for imputing missing floating-point values
Documentation
  • Coverage
  • 92.31%
    12 out of 13 items documented2 out of 9 items with examples
  • Size
  • Source code size: 22.49 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 363.88 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • mirea-lab-ai/cmac_rust
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • BadWolf1st

cmac_rust

CMAC (Cerebellar Model Articulation Controller) utilities for imputing missing f64 observations that are marked as NaN values.

Features

  • Predict missing samples in f64 sequences via CMAC receptive fields.
  • Configurable learning rate and epoch count for simple experimentation.
  • Ergonomic Cmac type re-exported as CMAC for backward compatibility.
  • Ships with unit tests, doctests, and an executable example for quick checks.

Installation

Add the crate to your Cargo.toml:

cmac_rust = "0.1"

Quick Start

use cmac_rust::Cmac;
use std::f64;

let data = vec![1.0, f64::NAN, 3.0, f64::NAN, 5.0];
let mut cmac = Cmac::new(data, 2);
let imputed = cmac.impute(0.5, 4);

assert!(!imputed[1].is_nan());
assert!(!imputed[3].is_nan());

Examples

Run the bundled example to see the imputer in action:

cargo run --example impute

Documentation

You can find the API documentation on docs.rs.

Contributing

Contributions are welcome! Please open issues or pull requests on GitHub.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.