Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Updates

  • Added The display feature
  • fixed a bug

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.2

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.2
File Size Uploaded Provenance Actions
the_shaper-0.1.2.tar.gz 3.2 kB Without provenance Details for the_shaper-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 6.6 kB

Release files / the_shaper-0.1.2.tar.gz

Download URL the_shaper-0.1.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
51a11900c73ffdf6e468924b933c9e26a069d2335df19814bdfdbe3e125b554c
BLAKE2b-256 checksum
How to use checksums
80d5d25ea3d9b6f2f1e4bf72c5d426469fe0466b03adb4f3a77233559f04033c
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.2-py3-none-any.whl

Download URL the_shaper-0.1.2-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82bbb8fd939c9345f5302a723a3108e1882f37e1a043229004422d5c0ee225bf
BLAKE2b-256 checksum
How to use checksums
943189bd30bef5117b5cde2961db8079ca88a949fe435e6d50ff549ea151dcd7
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.2

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
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