https://github.com/psiace/tissue
Quickly showcase your machine learning magic! On the tissue, with Rust.
https://github.com/psiace/tissue
Last synced: 12 months ago
JSON representation
Quickly showcase your machine learning magic! On the tissue, with Rust.
- Host: GitHub
- URL: https://github.com/psiace/tissue
- Owner: PsiACE
- License: apache-2.0
- Created: 2024-03-01T08:52:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-04T13:52:47.000Z (over 2 years ago)
- Last Synced: 2025-06-01T01:44:24.068Z (about 1 year ago)
- Language: Rust
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-rust-ai-libraries - tissue - A Rust crate to quickly showcase machine learning models or magic. Facilitates rapid prototyping and demonstration of ML work in Rust. Useful for presentations and quick AI experiments. ([Read more](/details/tissue.md)) `Open Source` `Prototyping` (Machine Learning)
README
# Tissue
Tissue is a Rust framework that enables effortless and efficient conversion of machine learning models into interactive, user-friendly demos. With Tissue, a few lines of code are all it takes to bring your machine learning algorithms to life with engaging visual applications.
## Features
- **Speedy Setup**: Get started with Tissue in minutes and integrate seamlessly with your existing Rust machine learning projects.
- **Interactive GUI**: Create a graphical user interface that makes your models accessible to non-technical users.
- **Rust-Powered**: Take advantage of Rust's performance and safety features to deploy machine learning models efficiently.
## Quick Start
To begin using Tissue, add it to your project's `Cargo.toml` file:
```toml
[dependencies]
tissue = "0.1.0"
```
### Simple Addition Demo
Create an interactive demo with Tissue:
```rust
use tissue::{run, Input};
fn main() {
run(
|x: Vec| x.iter().sum(),
&[Input::Number(234.289), Input::Number(235.6)],
)
.expect("Could not run");
}
```
### Linear Regression Demo
```rust
use tissue::{run, Input};
fn main() {
// Simple linear regression: y = ax + b
run(
|x: Vec| {
let input_x = x[0];
let slope = x[1]; // 'a' parameter
let intercept = x[2]; // 'b' parameter
slope * input_x + intercept
},
&[
Input::Number(5.0), // x value
Input::Slider {
min: -10.0,
max: 10.0,
step: 0.1,
initial_value: 2.0, // slope
},
Input::Slider {
min: -10.0,
max: 10.0,
step: 0.1,
initial_value: 1.0, // intercept
},
],
)
.expect("Could not run linear regression demo");
}
```
### Running Examples
```bash
# Clone the repository
git clone https://github.com/PsiACE/tissue.git
cd tissue
# Run different examples
cargo run --example addition
```
## Licenses
This library is licensed under either of:
* MIT license [LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT
* Apache License 2.0 [LICENSE-APACHE](LICENSE-APACHE) or https://opensource.org/licenses/Apache-2.0
at your option.
## Acknowledgements
Tissue owes much to the foundational work of [Chris McComb](https://twitter.com/ccmccomb)'s [tease](https://github.com/cmccomb/tease); its initial codebase was critical to Tissue's early development, despite tease no longer being actively maintained.
Inspired by the user-friendly interfaces of [Gradio](https://gradio.app/) and [Streamlit](https://streamlit.io/), Tissue aspires to streamline the sharing and demonstration of machine learning models within the Rust ecosystem, emulating the simplicity these tools offer.
---
Embrace the power of Rust and bring the magic of your machine learning models to life with Tissue!