Skip to main content

machine learning ecosystem

Project description

🌱 LittleLearn – Touch the Big World with Little Steps

update Version (0.1.7) date : (14-october-2025) : - get_weight bug fixed on AutoTransformers - update add option "PreNorm and PostNorm" on BlockTransformers - update add option "PreNorm And PostNorm" on AutoTransformers - update add Deep level for Decoder crossAttention in AutoTransformers - update Hubber loss support multi output regression - update Mean Absolute Error support multi outputs regression - update Mean Squared Error support multi outputs regression
- update new Layers LatenConnected Layers - update new Model variant LatenConnectedModel (5,8,12,16) block stacking. - update Gradient Clipper Tools (clip by norm, clip by values, clip by global) - update new Module Gradient Tools for look gradient interaction - update new layers DropOut

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.1.7.tar.gz (77.0 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.1.7-py3-none-any.whl (83.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for littlelearn-0.1.7.tar.gz
Algorithm Hash digest
SHA256 c878d8dbcaeaa91e76357ef4481b54731a3955fab69b8e213ae16d886c26aa3e
MD5 4c8b3bd2cb9df8285f8c9170cb90953d
BLAKE2b-256 93c2d4767d8a612ad87142f9e11da6687dcf51be69d101103482b340898904c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: littlelearn-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 83.7 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.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8fa473e06042a290a013448c3c171bce388e7b22ca3d79b20dfb7745d15a2fa3
MD5 7f7d56f47b3e03a311f748c9939a1917
BLAKE2b-256 87a908fbfdbe13f9b275352b03906ff8f9a6680114f9a6889a6d7804eecdf196

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