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.2.tar.gz (82.4 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.2-py3-none-any.whl (89.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: littlelearn-0.2.2.tar.gz
  • Upload date:
  • Size: 82.4 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.2.tar.gz
Algorithm Hash digest
SHA256 22b55986ef1366e5866a2a97b60851f3ebf885999d56b0fccd7e6719dbf1c219
MD5 61bde55f5f69dbce472af5dd50fc6783
BLAKE2b-256 8d60170177a017034021b4177c032f983dd5cf6f88d01732629233888f3c681c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: littlelearn-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 89.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e40c74f821cdc88ad1040528a8173c4545b9d1d11d1470b2236014c47992a224
MD5 198ecc1ef4abe95cb177ae840f41abfd
BLAKE2b-256 92af321404a0a36e3f14b717fd14467514efad39f4cd5ee74a5562cb3b675ef0

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