Skip to main content

Universal Learning

This package contains implementations of universal learning algorithms including Solomonoff Induction, AIXI, and related methods from algorithmic information theory.

Implements optimal learning through algorithmic information theory and universal priors, providing the theoretical foundation for optimal prediction and learning in any computable environment.

Features

  • Solomonoff Induction: Optimal universal prediction algorithm
  • AIXI Framework: Universal artificial intelligence architecture
  • Modular Design: Clean separation of concerns with backward compatibility
  • Research Accurate: Based on foundational algorithmic information theory

Core Concepts

The package implements optimal learning using Solomonoff's algorithmic probability:

P(x) = Σ_{p:U(p)=x} 2^(-|p|)

where U is a universal Turing machine and |p| is program length.

Installation

pip install universal-learning

Basic Usage

from universal_learning import SolomonoffInduction

# Create Solomonoff predictor
predictor = SolomonoffInduction()

# Learn from data sequence
sequence = [1, 0, 1, 1, 0, 1, 0, 0]
predictor.learn_sequence(sequence)

# Predict next symbol
next_symbol = predictor.predict_next()

Research Foundation

Based on foundational work in universal artificial intelligence:

  • Solomonoff (1964) "A Formal Theory of Inductive Inference"
  • Hutter (2005) "Universal Artificial Intelligence"

Technical Implementation

Provides the theoretical foundation for optimal prediction and learning in any computable environment through:

  • Universal priors over program space
  • Algorithmic probability calculations
  • Optimal sequence prediction
  • Universal artificial intelligence principles

Author

Benedict Chen (benedict@benedictchen.com)

License

Custom Non-Commercial License with Donation Requirements

Metadata

Release files for universal-learning 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for universal-learning 1.3.0
File Size Uploaded
universal_learning-1.3.0.tar.gz 184.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for universal-learning 1.3.0
File Interpreter ABI Platform
universal_learning-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 396.6 kB

Release files / universal_learning-1.3.0.tar.gz

Download URL universal_learning-1.3.0.tar.gz
Size 184.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a60b31f532a1b84d4124c0f40b786b085ed8706e356d6cade1d0559ef08cc988
BLAKE2b-256 checksum
How to use checksums
c34f0d206c6fa0bea2c3790f231008bb361670a7250cf5876d4e8c81ddf9fa3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3+

Release files / universal_learning-1.3.0-py3-none-any.whl

Download URL universal_learning-1.3.0-py3-none-any.whl
Size 212.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
664bba961402ec882a623f52dc08cce5f1c077e65d1ead0c5f366d08a28e5427
BLAKE2b-256 checksum
How to use checksums
6ec556ac154f56244c00fcf5ad4f2ba603e78302b4019a38dd5cb9965dfde3d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3+

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page