Metadata-Version: 2.4
Name: The-Shaper
Version: 0.1.2
Summary: A dataset-based prediction algorithm using a single formula.
Author: Apan Dan
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: numpy

# Updates

- Added The display feature
- fixed a bug




## How to Use

### 1. Install

```bash
pip install The-Shaper
```

### 2. Import

```python
import shaper
```

### 3. Create a Dataset

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

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

### 4. Create a Model

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

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

### 5. Make a Prediction

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

### 6. Get Correct Outputs

```python
print(AI.get_correct_outputs())
```

This returns the reconstructed outputs using `output - loss`.

### 7. Change the Dataset

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

## Display the Dataset

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

```python
import shaper

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

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

Example output:

```text
==================================================
 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.
