semvec/pypi-packages huggingface dataset:
pyrvsignal 2023.8.1
Signal for Python
License: MIT
Requires Python: >=3.6
Keywords: pyrvsignal signal thread_safe

# Thread Safe Signal
```text
Thread safe signal to generate and receive events
```

## Installation:
```bash
pip install pyrvsignal
```

## Example code:

```python
import time
from threading import Thread
from pyrvsignal import Signal


class MyThread(Thread):
    started = Signal()
    finished = Signal()

    def __init__(self, target, args):
        self.target = target
        self.args = args
        Thread.__init__(self)

    def run(self) -> None:
        self.started.emit()
        self.target(*self.args)
        self.finished.emit()


def do_my_work(details):
    print(f"Doing work: {details}")
    time.sleep(10)

def started_work():
    print("Started work")
    
def finished_work():
    print("Work finished")

thread = MyThread(target=do_my_work, args=("testing",))
thread.started.connect(started_work)
thread.finished.connect(finished_work)
thread.start()
```

## Contact
&emsp; If any suggestions mail to [ravikiranb36@gmail.com](mailto:admin@w3schools.io)
amrnet 0.1.1
Deep Learning library
License: MIT

# AmrNet: Deep Learning Library

AmrNet is a lightweight deep learning library designed for simplicity and ease of use. It provides a set of basic tools to help you quickly build and train neural networks.

<!-- ## Features

- **Simple API:** Easily define, train, and evaluate neural networks with just a few lines of code.
- **Modularity:** Construct networks using pre-built layers or create custom layers for more flexibility.
- **Optimizers:** Choose from a variety of gradient descent optimizers to train your models.
- **Example Usage:** Check out the `examples` directory for code snippets and sample projects. -->

## Installation

```bash
pip install amrnet==0.1.0
```

## Implemented Features

- [Tensors](./amrnet/tensor.py)
- [Layers](./amrnet/layers.py) :

    1. Linear
    2. ReLU
    3. Tanh
    4. LeakyReLU
    <br></br>
- [Neural Networks](./amrnet/nn.py)
- [Loss Functions](./amrnet/loss.py) :

    1. MSE
    2. TSE
    3. MAE
    4. LogCosh
    <br></br>
- [Optimizers](./amrnet/optim.py) :

    1. SGD
    <br></br>
- [Data Utilities](./amrnet/data.py)
- [Training Utilities](./amrnet/train.py)



## Usage

### Creating a Model

```python
from amrnet.nn import NeuralNet
from amrnet.layers import Linear, Tanh,  ReLU

net = NeuralNet([
    Linear(input_size, hidden_size),
    Tanh(),
    Linear(hidden_size, output_size)
])
```

### Training the Model

```python
from amrnet.train import train

train(net, inputs, targets, num_epochs, data_iterator, loss, optimizer)
```

### Predicting

```python
predicted = net.forward(x)
```

## Examples

Check out the [examples](./examples/) directory for a variety of different projects using AmrNet.

## License

[MIT](LICENSE)


## TODO
- [ ] Add more layers
- [ ] Add more optimizers
- [ ] Add more loss functions
- [ ] Add more data utilities
- [ ] Add more training utilities
- [ ] Add more examples
- [ ] Add more tests
- [ ] Add more documentation