From 044c3284dfe3b60ba850b6b0f7b0f6b48f69976e Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Thu, 17 Jul 2025 00:09:42 +0100 Subject: [PATCH] Enhance README with detailed project scope, features, and compute module overview --- README.md | 45 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ee5e2e6..25408b0 100644 --- a/README.md +++ b/README.md @@ -17,16 +17,43 @@ Rustframe provides intuitive dataframe, matrix, and series operations for data analysis and manipulation. -Rustframe keeps things simple, safe, and readable. It is handy for quick numeric experiments and small analytical tasks, but it is **not** meant to compete with powerhouse crates like `polars` or `ndarray`. +Rustframe keeps things simple, safe, and readable. It is handy for quick numeric experiments and small analytical tasks as well as for educational purposes. It is designed to be easy to use and understand, with a clean API implemented in 100% safe Rust. -Rustframe is an educational project, and is not intended for production use. It is a work in progress, and the API is subject to change. There are no guarantees of stability or performance, and it is not optimized for large datasets or high-performance computing. +Rustframe is an educational project, and is not intended for production use. It is **not** meant to compete with powerhouse crates like `polars` or `ndarray`. It is a work in progress, and the API is subject to change. There are no guarantees of stability or performance, and it is not optimized for large datasets or high-performance computing. ### What it offers +- **Matrix operations** - Element-wise arithmetic, boolean logic, transpose, and more. - **Math that reads like math** - element‑wise `+`, `−`, `×`, `÷` on entire frames or scalars. -- **Broadcast & reduce** - sum, product, any/all across rows or columns without boilerplate. -- **Boolean masks made simple** - chain comparisons, combine with `&`/`|`, get a tidy `BoolMatrix` back. -- **Pure safe Rust** - 100 % safe, zero `unsafe`. +- **Frames** - Column major data structure for single-type data, with labeled columns and typed row indices. +- **Compute module** - Implements various statistical computations and machine learning models. + +- **[Coming Soon]** _DataFrame_ - Multi-type data structure for heterogeneous data, with labeled columns and typed row indices. + +- **[Coming Soon]** _Random number utils_ - Random number generation utilities for statistical sampling and simulations. (Currently using the [`rand`](https://crates.io/crates/rand) crate.) + +#### Matrix and Frame functionality + +- **Matrix operations** - Element-wise arithmetic, boolean logic, transpose, and more. +- **Frame operations** - Column manipulation, sorting, and more. + +#### Compute Module + +The `compute` module provides implementations for various statistical computations and machine learning models. + +**Statistics, Data Analysis, and Machine Learning:** + +- Correlation analysis +- Descriptive statistics +- Distributions +- Inferential statistics + +- Dense Neural Networks +- Gaussian Naive Bayes +- K-Means Clustering +- Linear Regression +- Logistic Regression +- Principal Component Analysis ### Heads up @@ -164,3 +191,11 @@ E.g. to run the `game_of_life` example: ```bash cargo run --example game_of_life ``` + +### Running benchmarks + +To run the benchmarks, use: + +```bash +cargo bench --features "bench" +```