early-stopping-0.1.3
توضیحات
Early stopping for neural networks
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | early-stopping-0.1.3 |
| نام | early-stopping |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ovikx |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/early-stopping/ |
| مجوز | - |
# Early Stopping
I'm too lazy to read the Tensorflow documentation, so I made this simple early stopper. After each training step, feed the object the testing loss result for that epoch and it will return a boolean that says whether or not to break the training loop.
# Installation
Install through pip as shown:
```bash
pip install early-stopping
```
# Example Usage
```py
from early_stopping import EarlyStopping
early_stopper = EarlyStopping(
depth=5,
ignore=20,
method='consistency'
)
# Your training loop
for epoch in range(EPOCHS):
# Train step here
# Test step here
# Check if we should break the loop
if early_stopper.check(testing_loss):
print('BREAKING THE TRAINING LOOP')
break
```
نحوه نصب
نصب پکیج whl early-stopping-0.1.3:
pip install early-stopping-0.1.3.whl
نصب پکیج tar.gz early-stopping-0.1.3:
pip install early-stopping-0.1.3.tar.gz