Making AI Approachable, Interpretable, and Resource-Friendly.
Project description
TensorTalezz-RV
Accessible, educational, and practical AI/ML tools for everyone.
๐ Overview
TensorTalezz-RV is a proprietary AI/ML library designed to make machine learning approachable, educational, and practical. Structured into five core modules, it combines powerful, easy-to-use ML tools with interactive educational features to bridge the gap between abstract concepts and real-world implementation.
๐ฆ Modules & Features
1. ๐ Explainability
Interpret and trust your models with intuitive visualizations.
plot_feature_influence: Visualize how each feature contributes to predictions.plot_decision_boundary: Show classifier boundaries in two dimensions.explain_prediction: Provide a human-readable breakdown of a single prediction.compare_models: Contrast multiple models side by side.plot_training_curve: Track loss and accuracy trends during training.
2. โก Lightweight ML
Simplicity and speed for rapid prototyping.
train: One-line model training with minimal boilerplate.predict: Generate predictions effortlessly.evaluate: Print clear, friendly, and comprehensive performance metrics.save_model&load_model: Persist and reuse trained models easily.
3. ๐งน Preprocessing
Automate the messy work of data preparation.
auto_clean: Handle missing values, scaling, and encoding automatically.detect_outliers: Flag anomalies in datasets.normalize_text: Clean text data for NLP tasks.split_dataset: Perform train/test splits in one call.feature_summary: Generate quick statistics for each column.
4. ๐ Education
Interactive tools to teach and learn AI concepts tangibly.
explain: Analogy-driven explanations of complex AI/ML concepts.visualize_algorithm: Step-by-step algorithm demonstrations.concept_demo: Toy-dataset demonstrations of ideas like over/underfitting.quiz: Generate short, interactive quizzes for learners.compare_algorithms: Run multiple algorithms and explain their differences.
5. ๐ฑ Low-Resource ML
Built for constrained environments with limited data or compute.
tiny_classifier: Train highly constrained, lightweight models.quantize_model: Reduce model serialization size for deployment.evaluate_small_data: Use robust metrics tailored for tiny datasets.stream_train: Support incremental, out-of-core training for streaming data.compress_dataset: Reduce dataset size via intelligent downsampling or dimensionality reduction.
๐ Requirements
- Python 3.8+
- Dependencies:
numpy,pandas,scikit-learn,matplotlib,seaborn
๐ Installation
# Clone the repository
git clone https://github.com/example/TensorTalezz-RV.git
cd TensorTalezz-RV
# Install the package
pip install .
๐ฏ Quick Start
Check out the examples/quickstart.py file to see a complete workflow combining all modules.
from tensor_talezz_rv.lightweight import train, evaluate
from tensor_talezz_rv.education import explain
# Learn about an algorithm
explain("random_forest")
# Train it in one line!
model = train(X_train, y_train, algorithm="random_forest")
metrics = evaluate(model, X_test, y_test)
๐ Usage Examples
Preprocessing
from tensor_talezz_rv.preprocessing import auto_clean
cleaned_df, report = auto_clean(raw_dataset)
Explainability
from tensor_talezz_rv.explainability import explain_prediction
feature_names = [f"Feature {i}" for i in range(X_test.shape[1])]
explanation = explain_prediction(model, X_test[0], feature_names)
Low-Resource ML
from tensor_talezz_rv.lowresource import tiny_classifier
tiny_model = tiny_classifier(X_train, y_train)
tensor_talezz_rv in Action
====================================================================== ๐ WELCOME TO TENSORTALEZZ-RV LIVE DEMO
๐งน MODULE 1: PREPROCESSING
1a. Before Cleaning (Feature Summary):
๐ Feature Summary (250 rows, 6 columns)
column dtype missing missing_pct unique mean std min max median
top_values
Age float64 1 0.4 249 -0.0396 1.3134 -3.422492 3.370100 -0.229298
NaN
Income float64 1 0.4 249 0.0700 1.0655 -2.364563 2.367717 0.057826
NaN
Score float64 0 0.0 250 39.9405 632.3972 -3.959492 9999.000000 -0.217356
NaN
Engagement float64 0 0.0 250 -0.0696 1.3463 -2.920976 3.498072 -0.041329 NaN Category object 86 34.4 2 NaN NaN NaN NaN NaN {'B': 83, 'A': 81} Target int64 0 0.0 2 0.5000 0.5010 0.000000 1.000000 0.500000 NaN
1b. Outlier Detection: ๐ Detected 1 outlier(s) across 5 column(s). โข Score: 1 outliers
1c. Auto Clean Action: ๐ฉน Filled missing: numeric=['Age', 'Income'], categorical=['Category'] ๐ Scaled numeric columns: ['Age', 'Income', 'Score', 'Engagement', 'Target'] ๐ท๏ธ Encoded categorical columns: ['Category'] โ Cleaning complete. Shape: (250, 6) โ๏ธ Split: 200 train / 50 test (test_size=0.2)
โก MODULE 2: LIGHTWEIGHT ML
2a. One-Line Training: โ Trained Random Forest (classification) on 200 samples. โ Trained Logistic Regression (classification) on 200 samples.
2b. Easy Evaluation:
๐ โโ Evaluation Results โโโโโโโโโโโโโโโโโโ accuracy : 0.9600 precision : 0.9628 recall : 0.9600 f1_score : 0.9598
precision recall f1-score support
-1.0 1.00 0.91 0.95 23
1.0 0.93 1.00 0.96 27
accuracy 0.96 50
macro avg 0.97 0.96 0.96 50 weighted avg 0.96 0.96 0.96 50
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
2c. Saving Model: ๐พ Model saved to 'demo_random_forest.joblib' (348.9 KB)
๐ MODULE 3: EXPLAINABILITY
3a. Explaining a Single Prediction: Prediction: 1.0 --- Feature Contributions ---
- Age: 0.1445
- Income: -0.0931
- Engagement: 0.0195
- Category: 0.0087
- Score: -0.0076
3b. Comparing Models On Test Set:
Model Accuracy Precision Recall F1 Score
Random Forest 0.9600 0.9628 0.9600 0.9598 Logistic Regression 0.9200 0.9232 0.9200 0.9201
3c. Plotting Feature Influence (Close window to proceed):
๐ฑ MODULE 4: LOW-RESOURCE ML
4a. Compressing Dataset (e.g. for Edge Devices): ๐๏ธ Original shape: (200, 5) ๐ Downsampled rows to 50. ๐ PCA reduced features to 2 components. โ Compressed shape: (50, 2)
4b. Small Data Evaluation (Leave-One-Out CV): ๐ Trained 'fast_tree' tiny classifier on 15 samples. ๐ฌ Evaluating on small dataset (15 samples) using Leave-One-Out CV...
๐ โโ Small Data Evaluation โโโโโโ LOO Accuracy : 0.8000 Balanced Accuracy : 0.7946 (Handles class imbalance) MCC : 0.6001 (Robust score -1 to +1) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ MODULE 5: EDUCATION
5a. Explaining Concepts Analogy-Style:
============================================================ ๐ BiasโVariance Tradeoff
๐ฏ Analogy: Think of throwing darts. High bias means you consistently hit the wrong spot (systematic error). High variance means your throws are scattered all over the board (inconsistent). The sweet spot is low bias AND low variance โ consistently hitting the bullseye.
๐ Formal Definition: Bias is the error from wrong assumptions; variance is sensitivity to small fluctuations in the training set. Total error = Biasยฒ + Variance + Irreducible error. Reducing one often increases the other.
๐ก Tips: โข Complex models โ low bias, high variance. โข Simple models โ high bias, low variance. โข Use ensemble methods to balance both.
5b. Visualizing Algorithms Step-by-Step (Close window to exit): โญ The gold star is the query point. Notice how k affects the prediction and boundary smoothness.
====================================================================== ๐ DEMO COMPLETE!
๐ License
This project is licensed under the TensorTalezz-RV Proprietary License.
See the LICENSE file for details.
๐ผ Commercial Use
TensorTalezz-RV is proprietary software.
For commercial licensing, enterprise support, integration into paid services, or collaborations, please refer to the COMMERCIAL.md file for full details and constraints.
To request a commercial license, please contact:
๐ง rahulvpatil098@gmail.com
๐ค Contributing
Bug reports, feature requests, and suggestions are welcome.
Code modifications require explicit approval due to the proprietary license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tensor_talezz_rv-0.1.0.tar.gz.
File metadata
- Download URL: tensor_talezz_rv-0.1.0.tar.gz
- Upload date:
- Size: 38.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02319748be15b4882e67b217317f32973d8855321ca99a795dedd7521ebd0058
|
|
| MD5 |
38e7797ef466be3a3918be40ac38a092
|
|
| BLAKE2b-256 |
94b65d4a3585bbb2cd745cea456b9172cc5424820c58e1e5bc7fe08891d045e4
|
File details
Details for the file tensor_talezz_rv-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tensor_talezz_rv-0.1.0-py3-none-any.whl
- Upload date:
- Size: 35.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddab80f8abb81c826b95f8cd9ff73540088de79190aaec1bd3c2860ff3ce273e
|
|
| MD5 |
ec1b10b48a2054d81f6389ae8fa08da2
|
|
| BLAKE2b-256 |
821fc1549869ffded210573405182c9e1d687e6b6ac07e9573834329dadd4152
|