Skip to main content

FractalNet: фрактална архитектура за обучение и генерация

Project description

FractalNet-0.1.3

FractalNet 0.1.3 е библиотека за невронни мрежи, вдъхновена от фракталната геометрия. Включва 7 генератора, модулна архитектура, и готови PyTorch датасети за обучение върху фрактални изображения, сигнали и космически структури. Лека, поетична и разширяема.

🐛 Version History v0.1.0 Initial release with core fractal architecture

Included unintended dependency: turtle, causing import errors in some environments

v0.1.1 Removed turtle from dependencies

Improved stability and compatibility across platforms

Cleaned up setup and documentation

v0.1.3 Added 7 fractal generators: Koch, Sierpinski, L-System, Dragon Curve, Mandelbrot, Julia Set, Lindenmayer

Included PyTorch Dataset classes for each fractal form

Introduced ReducedFractalDataset for efficient training

Improved project structure: clearly separated modules (ml/, fractals/, datasets/)

Finalized init.py with clean imports and all definition

Ready for PyPI publication as version 0.1.3

FractalNet Library

🧠 Concept and Applications

FractalNet is a lightweight PyTorch-based library for building neural networks inspired by fractal geometry. It uses recursive block structures to simulate depth and variation, enabling efficient learning across multiple scales.

Originally designed for image classification, FractalNet has evolved into a flexible framework for pattern recognition in various domains — including financial signals, audio analysis, and even cosmic wave detection.

⚙️ Features

  • Fractal Blocks: Recursive architecture with adjustable depth and branching
  • Stem Layer: Initial convolutional layer for input normalization
  • Adaptive Classifier: Final layer that adapts to task-specific output dimensions
  • Modular Design: Easy to extend for 1D, 2D, or even multimodal inputs
  • Training Utilities: Includes training loop, evaluation metrics, and visualization tools

🧠 Applications

  • Image classification (CIFAR-10, custom datasets)
  • Financial time series pattern recognition
  • Audio signal classification
  • Medical image diagnostics
  • Gravitational wave pattern analysis

📦 Import and Usage

After installing the library (pip install fractalnet), you can import and use its components as follows:

from FractalNet.ml.fractal_layers import FractalNet as FractalNetModel
from FractalNet.fractals.koch import KochDataset
from FractalNet.fractals.sierpinski import SierpinskiDataset
from FractalNet.fractals.l_system import LSystemDataset
from FractalNet.fractals.dragon import DragonDataset
from FractalNet.fractals.mandelbrot import MandelbrotDataset
from FractalNet.fractals.julia import JuliaDataset
from FractalNet.fractals.lindenmayer import LindenmayerDataset
from FractalNet.datasets.reduced import ReducedFractalDataset

model = FractalNetModel()
dataset = KochDataset(num_samples=10)

print(model)
print(f"Number of images: {len(dataset)}")

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

fractalnet-0.1.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

fractalnet-0.1.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file fractalnet-0.1.3.tar.gz.

File metadata

  • Download URL: fractalnet-0.1.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for fractalnet-0.1.3.tar.gz
Algorithm Hash digest
SHA256 411791813e8b43dea16bd86de088e9dcb2de3ae8ebd69e720a5d6774f0520fbb
MD5 611245fde5844b7a1d24d78bafb70902
BLAKE2b-256 dc2c3ec72252eb9e21ed836364538a7418a3a10736367c1c21e89c25e3a54788

See more details on using hashes here.

File details

Details for the file fractalnet-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: fractalnet-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for fractalnet-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6c964cbec7c2b468c61727d149eaa1165e7df3c4010db66766334daf9594837f
MD5 66b7680665c97fb3a6120ab3d8472dd0
BLAKE2b-256 9399f87d6c815c294e9785fafd9f31d52c1c6ba8006422ff5d09deaea2d543ca

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