Skip to main content

Accuracy-based Learning Classifier Systems for Python 3

Description

XCS is a Python 3 implementation of the XCS algorithm as described in the 2001 paper, An Algorithmic Description of XCS, by Martin Butz and Stewart Wilson. XCS is a type of Learning Classifier System (LCS), a machine learning algorithm that utilizes a genetic algorithm acting on a rule-based system, to solve a reinforcement learning problem.

In its canonical form, XCS accepts a fixed-width string of bits as its input, and attempts to select the best action from a predetermined list of choices using an evolving set of rules that match inputs and offer appropriate suggestions. It then receives a reward signal indicating the quality of its decision, which it uses to adjust the rule set that was used to make the decision. This process is subsequently repeated, allowing the algorithm to evaluate the changes it has already made and further refine the rule set.

A key feature of XCS is that, unlike many other machine learning algorithms, it not only learns the optimal input/output mapping, but also produces a minimal set of rules for describing that mapping. This is a big advantage over other learning algorithms such as neural networks whose models are largely opaque to human analysis, making XCS an important tool in any data scientist’s tool belt.

The XCS library provides not only an implementation of the standard XCS algorithm, but a set of interfaces which together constitute a framework for implementing and experimenting with other LCS variants. Future plans for the XCS library include continued expansion of the tool set with additional algorithms, and refinement of the interface to support reinforcement learning algorithms in general.

Metadata

Release files for xcs 1.0.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 xcs 1.0.0
File Size Uploaded Provenance
xcs-1.0.0.zip 121.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for xcs 1.0.0
File Interpreter ABI Platform
xcs-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 175.6 kB

Release files / xcs-1.0.0.zip

Download URL xcs-1.0.0.zip
Size 121.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e5a21b2787ca6c3aa30c7f016403e81c456537f6b4f8c65a57f9a3866d69b779
BLAKE2b-256 checksum
How to use checksums
70b1f360d661d4058b4f1efeda358b3312595d7be5cfedc3f8349c88c5711677
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / xcs-1.0.0-py3-none-any.whl

Download URL xcs-1.0.0-py3-none-any.whl
Size 53.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1254131b1b65dab81e7f076f3750c62b9b4bf0045250c008c4999b535824c12f
BLAKE2b-256 checksum
How to use checksums
fca53f3ef5be95e94eb44cc00be66073624bb468290432690cfca19b7b999fb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for xcs 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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