MCPcopy Index your code
hub / github.com/autumnai/cuticula

github.com/autumnai/cuticula @0.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.2.0 ↗ · + Follow
43 symbols 54 edges 9 files 19 documented · 44% updated 9y ago★ 89
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cuticula • Join the chat at https://gitter.im/autumnai/cuticula Build Status Coverage Status Crates.io License

Cuticula tries to provide a smart and customizable pipeline for preprocessing data for machine learning tasks. Clean preprocessing methods for the most common type of data, makes preprocessing easy. Cuticula offers a pipeline of Modifiers and Transformers to turn non-numeric data into a safe and consistent numeric output in the form of Collenchyma's SharedTensor. For putting your preprocessed data to use, you might like to use the Machine Learning Framework Leaf.

For more information see the Documentation.

Architecture

Cuticula exposes several standard data types, which might need a numeric transformation in order to be processed by a Machine Learning Algorithm such as Neural Nets.

Data Types can be modified through Modifiers. This provides a coherent interface, allowing for custom modifiers. You can read more about custom modifiers further down. First, an example of a Data Type modification:

let mut data_type = Image { value: ... }
data_type = data_type.set((ModifierOne(param1, param2), ModifierTwo(anotherParam));
image.set(Resize(20, 20))

After one, none or many modifications through Modifiers, the Data Type can then finally be transformed into a SharedTensor (numeric Vector). Taking data_type from the above example:

// the Vector secures the correct shape and capacity of the final SharedTensor
let final_tensor = data_type.transform(vec![20, 20, 3]).unwrap();

Transformable Data Types

These are the data types that cuticula is currently addressing. For most of them are basic Modifiers and Transformers already specified.

  • Missing: NULL data
  • Label: labeled data such as ID's, Categories, etc.
  • Word: a String of arbitrary lengths
  • Image
  • Audio

Modifiers

All Modifiers implement the Modifier trait from rust-modifier. As all Transformable Data Types implement the Set trait of the same library, one can easily write custom modifiers as well. Quick Example:

extern crate cuticula;

use cuticula::Image;
use cuticula::modifier::Modifier;

struct CustomModifier(usize)

impl Modifier<Image> for CustomModifier {
    fn modify(self, image: &mut Image) {
        image.value = some_extern_image_manipulation_fn(self.0);
    }
}

Contributing

Want to contribute? Awesome! We have instructions to help you get started contributing code or documentation.

Autumn has a mostly real-time collaboration culture and happens on the Autumn Gitter Channels. Or you reach out to the Maintainers. e.g. {@MJ, @hobofan}.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as below, without any additional terms or conditions.

License

Licensed under either of

  • Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Extension points exported contracts — how you extend this code

Transformer (Interface)
The Transformer Trait Gets implemented for all Transformable Data Types. Allows all Transformable Data Types to get tra [2 …
src/transformer.rs

Core symbols most depended-on inside this repo

transform
called by 4
src/transformer.rs
transform_to_vec
called by 1
src/word/mod.rs
write_to_memory
called by 0
src/transformer.rs
write_to_memory_offset
called by 0
src/transformer.rs
transform_to_vec
called by 0
src/image/mod.rs
new
called by 0
src/image/mod.rs
from_path
called by 0
src/image/mod.rs
from_buffer
called by 0
src/image/mod.rs

Shape

Function 22
Method 14
Class 5
Enum 1
Interface 1

Languages

Rust100%

Modules by API surface

tests/image_spec.rs15 symbols
src/image/mod.rs9 symbols
tests/transformer_spec.rs5 symbols
src/transformer.rs5 symbols
src/image/modifiers.rs4 symbols
src/word/mod.rs3 symbols
tests/word_spec.rs2 symbols

For agents

$ claude mcp add cuticula \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page