Skip to main content

machine learning ecosystem

Project description

🌱 LittleLearn – Touch the Big World with Little Steps

update Version (0.2.1) date : (12-December-2025):

- add new preprocessing AutoPreprocessing 
- tensor.plot_trace_operation bug fixed 
- add dropout mechanism in AutoTransformers 
- add dropout mechanism in LCM   
- add abstract class Component for Custom Model 
- add LCT Block sub model / layers for new Post-transformers model 
- add Trainer class for Custom Model training more easy 
- all layers and sub model inheritance on Component Class 

LittleLearn is an experimental and original machine learning framework built from scratch — inspired by the simplicity of Keras and the flexibility of PyTorch, yet designed with its own architecture, philosophy, and gradient engine.

🧠 What Makes LittleLearn Different?

  • 🔧 Not a wrapper – LittleLearn is not built on top of TensorFlow, PyTorch, or other major ML libraries.

  • 💡 Fully original layers, modules, and autodiff engine (GradientReflector).

  • 🧩 Customizable down to the node level: build models from high-level APIs or go low-level for complete control.

  • 🛠️ Features unique like:

  • Node-level gradient clipping

  • Inline graph tracing

  • Custom attention mechanisms (e.g., Multi-Head Attention from scratch)

  • 🤯 Designed for both research experimentation and deep learning education.

⚙️ Core Philosophy

Touch the Big World with Little Steps. Whether you want rapid prototyping or total model control — LittleLearn gives you both.

LittleLearn provides multiple levels of abstraction:

Usage Style Tools Available
💬 One-liner models AutoBuildModel, AutoTransformers
⚙️ Modular models Sequential, ModelByNode (soon)
🔬 Low-level experiment Layers, Loss, Optimizer manual calls
🧠 Custom gradients GradientReflector engine backend

📦 Ecosystem Features

  • ✅ Deep learning modules: Dense, LSTM, attention mechanisms, and more

  • 🧮 Classical ML components (in progress)

  • 🤖 Automated tools like AutoBuildModel

  • 🔄 Custom training loops with full backend access

  • 🧠 All powered by the GradientReflector engine — providing automatic differentiation with transparency and tweakability

🔧 Installation

    pip install littlelearn

🚀 Quick Example :

import littlelearn as ll 

x_train = 'your datasets'
y_train = 'your target'

model = ll.DeepLearning.Model.AutoBuildModel(type='mlp-binaryclassification',level='balance')
model.fit(x_train,y_train.reshape(-1,1),epochs=10,verbose=1)

With AutoTransformers :

    from littlelearn import DeepLearning as dl 
    optimizer = dl.optimizers.Adam()
    loss = dl.loss.SparseCategoricallCrossentropy()
    transformers_model = dl.Model.AutoTransformers(
        d_model=128,vocab_size=10000,ffn_size=512,
        maxpos=100,type='decoder-nlp',level='balance',
        Head_type='Multi',PosEncoding='learn'
    )
    x_train,y_train = "your datasets "
    
    for epoch in range(100) :
        outputs = transformers_model(x_train)
        l = loss(y_train,outputs)
        l.AutoClipGradient()
        l.backwardpass()
        optimizer.apply_weight(transformers_model.get_weight())
        optimizer.forward_in_weight()
        l.kill_grad()
        print(f"epoch {epoch + 1} || loss : {l.get_tensor()}")

📌 Disclaimer While inspired by well-known frameworks, LittleLearn is built entirely from scratch with its own mechanics. It is suitable for:

  • 🔬 Experimental research

  • 🏗️ Framework building

  • 📚 Educational purposes

  • 🔧 Custom low-level operations

This is an Beta-stage project — expect bugs, sharp edges, and lots of potential.

suport this project : https://ko-fi.com/alpin92578

👤 Author Candra Alpin Gunawan 📧 hinamatsuriairin@gmail.com 🌐 GitHub https://github.com/Airinchan818/LittleLearn

youtube : https://youtube.com/@hinamatsuriairin4596?si=KrBtOhXoVYnbBlpY

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

littlelearn-0.2.1.tar.gz (81.9 kB view details)

Uploaded Source

Built Distribution

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

littlelearn-0.2.1-py3-none-any.whl (89.0 kB view details)

Uploaded Python 3

File details

Details for the file littlelearn-0.2.1.tar.gz.

File metadata

  • Download URL: littlelearn-0.2.1.tar.gz
  • Upload date:
  • Size: 81.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for littlelearn-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9c64b2960aca34160b274132e21c91dd2b8c4c0a533dd667b8428e29cec8200b
MD5 c133c39988e061ad556bbbe99d03c6e2
BLAKE2b-256 c1a9c887c67e505906cb48fdac48d08356210db011811daca1d4e907b50f18e9

See more details on using hashes here.

File details

Details for the file littlelearn-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: littlelearn-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 89.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for littlelearn-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8450146d523e906dd882402e70f9e70d13873513bc44bf1ace214c409bf64f6
MD5 38aaf3504d89c9732260390691d85f69
BLAKE2b-256 a65a53fbce65b67e1713c6209a28a711a4337b753a2de1b0a9e0025532938216

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