Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.1.2 instead.
Reason given by maintainers: As it has a bug

Updates

  • Added The display feature

How to Use

1. Install

pip install The-Shaper

2. Import

import shaper

3. Create a Dataset

Each dataset row contains [input, output, loss]. Inputs should be lists, even for a single value.

dataset = [
    [[1], 3, -1],
    [[2], 3, 0],
    [[3], 5, 0]
]

4. Create a Model

AI = shaper.Model("MyModel", dataset, None)

The third argument is the modulo. Use None for no modulo.

5. Make a Prediction

result = AI.think([2])
print(result)

6. Get Correct Outputs

print(AI.get_correct_outputs())

This returns the reconstructed outputs using output - loss.

7. Change the Dataset

AI.change_dataset([
    [[4], 7, 0],
    [[5], 8, 1]
])

Display the Dataset

Use display() to print your model's dataset in a neat table.

import shaper

dataset = [
    [[1], 3, -1],
    [[2], 3, 0],
    [[3], 5, 0]
]

AI = shaper.Model("MyModel", dataset, None)
AI.display()

Example output:

==================================================
 THE SHAPER: MyModel
==================================================
INPUT               OUTPUT         LOSS
--------------------------------------------------
[1]                 3              -1
[2]                 3              0
[3]                 5              0
==================================================

Each row shows the input, stored output, and loss.

The model will use the updated dataset for future predictions.

Metadata

Release files for The-Shaper 0.1.1

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

Source distribution (sdist)

Source distribution for The-Shaper 0.1.1
File Size Uploaded Provenance Actions
the_shaper-0.1.1.tar.gz 3.2 kB Without provenance Details for the_shaper-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for The-Shaper 0.1.1
File Interpreter ABI Platform Actions
the_shaper-0.1.1-py3-none-any.whl Python 3 none any Details for the_shaper-0.1.1-py3-none-any.whl

Total release size: 6.6 kB

Release files / the_shaper-0.1.1.tar.gz

Download URL the_shaper-0.1.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5433da574dee7438920089a10be0532d392b4b6d3507370664580110df1ea1ab
BLAKE2b-256 checksum
How to use checksums
be32dbdb2874780b305c6260bbc36e57dd2df15a54866436a0cc5c21a6f48069
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / the_shaper-0.1.1-py3-none-any.whl

Download URL the_shaper-0.1.1-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eea547940426fbf8be511b56d13477af97d7f6868a7ed5afb0b4c5d629e8ba7c
BLAKE2b-256 checksum
How to use checksums
812dbebb5cbf731d1ff92a98bdeb621c25cf823222e9350616bcd9857e6f6345
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Security for The-Shaper 0.1.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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