Skip to main content

A Python ML library that evolves with your data. Batch + Real-time Learning, AutoML, XAI, NLP, RL, Anomaly Detection & more.

Project description

evolveml โ€” Machine Learning That Evolves With Your Data

A next-generation, modular Python Machine Learning library.
No sklearn. No tensorflow. No pytorch. Just pure Python and numpy.
Designed for real-world use cases where data never stops and models must never stop learning.


pip install evolveml

๐ŸŒ What is evolveml?

In the real world, data never stops arriving. Stock prices change every second. Bank transactions happen around the clock. Sensors stream data continuously. Emails pour in endlessly. Traditional machine learning libraries were built for a world where you collect data, train once, and deploy. But the real world does not work like that.

evolveml was built for the real world.

evolveml is a modular, production-ready Machine Learning library written entirely from scratch using only numpy. It is designed from the ground up to support two fundamental modes of learning:

  • Batch Learning โ€” Train your model on a full dataset at once, just like traditional ML
  • Online / Real-time Learning โ€” Update your model continuously as new data arrives, one sample at a time, without ever retraining from scratch

Beyond these core capabilities, evolveml is packed with the most important and trending 2026 AI technologies โ€” including AutoML, Explainable AI, Reinforcement Learning, NLP Sentiment Analysis, Anomaly Detection, Concept Drift Detection, and Transfer Learning โ€” all accessible through a clean, beginner-friendly API that anyone can use in just a few lines of code.

Whether you are a student learning machine learning for the first time, a developer building a production AI system, a data scientist looking for a lightweight sklearn alternative, or an engineer deploying models to IoT edge devices โ€” evolveml has everything you need in one single package.


๐Ÿš€ Why Choose evolveml Over sklearn?

Most developers reach for scikit-learn when they need machine learning. And while sklearn is a fantastic library, it was designed for a specific purpose โ€” batch learning on static datasets. The moment you need your model to learn in real-time, detect when your data has changed, explain why it made a decision, or apply reinforcement learning โ€” sklearn falls short.

evolveml was designed specifically to fill these gaps:

Capability evolveml scikit-learn
Batch Learning โœ… Full support โœ… Full support
Real-time / Online Learning โœ… Native built-in โš ๏ธ Very limited
Concept Drift Detection โœ… Built-in โŒ Not available
Explainable AI (XAI) โœ… Built-in โŒ Needs SHAP/LIME
Reinforcement Learning โœ… Built-in โŒ Not available
Sentiment Analysis (NLP) โœ… Built-in โŒ Not available
Anomaly Detection for IoT โœ… Built-in streamable โš ๏ธ Batch only
Transfer Learning โœ… Built-in โŒ Not available
AutoML Feature Selection โœ… Built-in โš ๏ธ Needs extra setup
Dependencies โœ… numpy only โŒ Many dependencies
Beginner Friendly โœ… 3-line API โš ๏ธ Steep learning curve
Built from scratch โœ… Learn internals โŒ Black box

๐Ÿงฉ Complete Module Reference

๐Ÿง  Core Machine Learning Models

DecisionTreeClassifier โ€” A full Decision Tree classifier built from scratch using information gain and entropy. Supports any depth, handles multi-class classification, and works seamlessly with image data.

LinearRegressionModel โ€” A clean implementation of Linear Regression using gradient descent optimization. Perfect for predicting continuous values like stock prices, house prices, or sensor readings.

LogisticRegressionModel โ€” Logistic Regression with both batch training (fit) and real-time online updates (partial_fit). Ideal for binary classification tasks like spam detection and fraud detection.

NeuralNetwork โ€” A fully connected neural network with configurable hidden layers, ReLU activations, softmax output, and backpropagation. Works for both binary and multi-class problems.

โšก Real-time Online Learning

StreamLearner โ€” The heart of evolveml. A real-time online learning model that updates itself with every single data point it sees. Feed it data one sample at a time from any stream โ€” IoT sensors, financial feeds, web logs โ€” and it learns continuously without ever needing a full retrain.

๐ŸŽฏ Ready-to-Use Task Models

FraudDetector โ€” A real-time fraud detection model that processes bank transactions as they arrive. Feed it a transaction dictionary with amount, hour, location, and attempt count and it instantly tells you if it is fraudulent. It learns from every labeled transaction it sees, getting smarter over time.

ImageClassifier โ€” An image classification model that supports two backends: Decision Tree for fast interpretable results and Neural Network for higher accuracy. Accepts flattened pixel arrays and automatically normalizes them.

SpamDetector โ€” An email spam detection model that works in both batch mode and online mode. Supports real-time updates so your spam filter never goes stale.

StockPredictor โ€” A stock price prediction model that trains on historical features and continuously updates as new market data arrives. Built on Linear Regression with a StreamLearner for real-time adaptation.

๐Ÿ”ฅ Latest 2026 Trending AI Modules

AutoFeatureSelector (AutoML) โ€” Automatically identifies and selects the most important features from your dataset using correlation analysis. No more manual feature engineering. Tell it how many features you want and it does the rest.

AnomalyDetector (Edge AI / IoT) โ€” Detects unusual patterns in streaming sensor or time-series data in real-time. Train it on normal data and it will immediately flag anything that deviates beyond your threshold. Also supports online updates to adapt to gradual shifts.

ConceptDriftDetector (Adaptive ML) โ€” One of the most critical problems in production ML is concept drift โ€” when your data distribution changes over time, making your model stale. This module monitors your model's prediction error over a sliding window and alerts you the moment it detects significant change.

ExplainableModel (XAI) โ€” Wraps any evolveml model and adds full explainability. For any prediction it tells you exactly which features influenced the decision and by how much. Essential for regulated industries like banking and healthcare where explainability is a legal requirement.

ReinforcementAgent (Agentic AI) โ€” A Q-Learning reinforcement learning agent. Define your states and actions and the agent learns the optimal policy through trial and error guided by rewards and penalties.

SentimentAnalyzer (NLP) โ€” A real-time sentiment analysis engine that classifies text as POSITIVE, NEGATIVE, or NEUTRAL with no external NLP libraries needed. Ships with a built-in vocabulary and supports online learning so you can teach it new words at any time.

TransferLearner (Transfer Learning) โ€” Reuse the knowledge from a pretrained evolveml model to solve a new but related problem with far less data and training time. Transfer learning is one of the most powerful ideas in modern AI and evolveml makes it accessible in three lines of code.


๐Ÿ’ป Quick Start Examples

# Install
pip install evolveml
# Decision Tree
from evolveml import DecisionTreeClassifier, train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)
model = DecisionTreeClassifier(max_depth=10)
model.fit(X_train, y_train)
print(f"Accuracy: {model.score(X_test, y_test):.2%}")
# Real-time Stream Learning
from evolveml import StreamLearner
model = StreamLearner(lr=0.01)
for x, y in live_data_stream:
    prediction = model.predict_one(x)
    model.learn_one(x, y)
# Fraud Detection
from evolveml import FraudDetector
detector = FraudDetector()
transaction = {'amount': 9500, 'hour': 2, 'location_mismatch': 1, 'failed_attempts': 3}
print(detector.check(transaction))
# {'is_fraud': True, 'transaction': {...}}
detector.update(transaction, is_fraud=True)
# Sentiment Analysis
from evolveml import SentimentAnalyzer
analyzer = SentimentAnalyzer()
print(analyzer.analyze("This product is absolutely amazing!"))
# {'sentiment': 'POSITIVE', 'confidence': 0.87}
analyzer.learn("brilliant", label='positive')
# Anomaly Detection
from evolveml import AnomalyDetector
detector = AnomalyDetector(threshold=2.5)
detector.fit(normal_data)
print(detector.detect(new_reading))
# {'is_anomaly': True, 'score': 3.4, 'status': 'ANOMALY'}
# Explainable AI
from evolveml import ExplainableModel, DecisionTreeClassifier
model = DecisionTreeClassifier()
model.fit(X_train, y_train)
xai = ExplainableModel(model, feature_names=['age', 'amount', 'hour'])
xai.fit(X_train, y_train)
xai.explain(X_test[0])
# โ†’ amount = 0.950 | Impact: 62.3%
# โ†’ hour   = 0.083 | Impact: 21.1%
# Concept Drift Detection
from evolveml import ConceptDriftDetector
drift = ConceptDriftDetector()
for pred, actual in prediction_stream:
    result = drift.update(pred, actual)
    if result['drift_detected']:
        print("Model is stale โ€” retrain now!")
# AutoML Feature Selection
from evolveml import AutoFeatureSelector
selector = AutoFeatureSelector(top_k=5)
X_best = selector.fit_transform(X_train, y_train)
selector.report()
# Reinforcement Learning
from evolveml import ReinforcementAgent
agent = ReinforcementAgent(n_states=100, n_actions=4)
action = agent.act(state)
agent.learn(state, action, reward=+1, next_state=next_state)
# Transfer Learning
from evolveml import TransferLearner, DecisionTreeClassifier
source = DecisionTreeClassifier()
source.fit(X_source, y_source)
transfer = TransferLearner(source)
transfer.fit(X_target, y_target)
print(transfer.score(X_test, y_test))

๐Ÿ‘ฅ Who Is evolveml For?

๐ŸŽ“ Students โ€” Learning machine learning? evolveml is built from scratch which means you can read the source code and understand exactly how Decision Trees, Neural Networks, and Gradient Descent work under the hood. No black boxes. No mystery. Just clean, readable Python.

๐Ÿ‘จโ€๐Ÿ’ป Developers โ€” Building a real-time ML application? evolveml gives you online learning, stream processing, and anomaly detection out of the box with no extra infrastructure needed.

๐Ÿ”ฌ Researchers โ€” Working on continual learning, concept drift, or adaptive systems? evolveml provides clean, hackable implementations of online learning algorithms that you can extend and experiment with freely.

๐Ÿญ IoT / Edge Engineers โ€” Deploying ML to resource-constrained devices? evolveml depends only on numpy, has zero bloat, and its AnomalyDetector and StreamLearner are designed specifically for streaming sensor data on edge hardware.

๐Ÿ“Š Data Scientists โ€” Want a lightweight alternative to sklearn without sacrificing capability? evolveml covers everything from preprocessing to model evaluation in one simple package.

๐Ÿš€ Startups and Builders โ€” Shipping fast and need a complete ML toolkit that just works? pip install evolveml and you have Decision Trees, Neural Networks, NLP, Fraud Detection, and more โ€” all ready to go immediately.


๐Ÿ—บ๏ธ Roadmap

  • v0.1.0 โ€” Core models: Decision Tree, Linear Regression, Logistic Regression, Neural Network
  • v0.2.0 โ€” StreamLearner, FraudDetector, ImageClassifier, SpamDetector, StockPredictor
  • v0.26.0 โ€” AutoML, AnomalyDetector, ConceptDriftDetector, XAI, RL Agent, NLP, Transfer Learning
  • v0.3.0 โ€” TimeSeriesPredictor, KMeans Clustering from scratch
  • v0.4.0 โ€” FederatedLearner for privacy-preserving ML
  • v0.5.0 โ€” Web dashboard for real-time model monitoring
  • v1.0.0 โ€” Full stable release with complete documentation website

๐Ÿ“„ License

MIT License โ€” Free to use for personal and commercial projects.


๐Ÿ‘จโ€๐Ÿ’ป Author

SAPPA VAMSI โ€” Python ML Library Developer


Built with โค๏ธ by SAPPA VAMSI
If evolveml helped you, give it a โญ and share it with others!

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

evolveml-0.11.26.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

evolveml-0.11.26-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file evolveml-0.11.26.tar.gz.

File metadata

  • Download URL: evolveml-0.11.26.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for evolveml-0.11.26.tar.gz
Algorithm Hash digest
SHA256 b1b3d0b9763da801762c6ccb53daef501a42461e25b9f12c58e8e3595ecfff8f
MD5 cfc5796f00b5e3dc50d12aac025dbf25
BLAKE2b-256 fd156affd868b83b753558988e24a5c3cc8ebaa165fb0b30bd5a3ef44e9357c1

See more details on using hashes here.

File details

Details for the file evolveml-0.11.26-py3-none-any.whl.

File metadata

  • Download URL: evolveml-0.11.26-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for evolveml-0.11.26-py3-none-any.whl
Algorithm Hash digest
SHA256 faf287fd27a1dd7fbb590a6c5961b50458c87c168dc30fc419e62f55948c0b39
MD5 98791457078e00ba22bfa0d80986187e
BLAKE2b-256 aa919f5e67c3f330a3ae1f4dfce16f9a7abb7029147a1312ec6b3d4133696774

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page