https://github.com/amanpriyanshu/reportdisc
A methodical API which report statistics through the discord server.
https://github.com/amanpriyanshu/reportdisc
Last synced: 26 days ago
JSON representation
A methodical API which report statistics through the discord server.
- Host: GitHub
- URL: https://github.com/amanpriyanshu/reportdisc
- Owner: AmanPriyanshu
- License: mit
- Created: 2022-02-23T12:23:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-23T18:36:16.000Z (over 3 years ago)
- Last Synced: 2025-04-03T03:25:10.675Z (7 months ago)
- Language: Python
- Size: 15.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ReportDisc
A methodical API which report statistics through the discord server.## Usage:
Copy file `ReportDisc.py` to the appropriate code prompt.### Import Function:
```py
from ReportDisc import ReportDisc, TorchReportDisc, TFReportDisc
```### Loop Reporter:
```py
rd = ReportDisc(webhook_url)
rd.report("Iterating through: "+str(array))
for index, dictionary in enumerate(array):
rd.report_stats(dictionary)
```#### OUTPUT:
### PyTorch Reporter:
```py
trd = TorchReportDisc(webhook_url)
trd.report("Starting PyTorch...")
for epoch in range(10):
for batch_x, batch_y in dataloader:
...
trd.report_stats({"loss": loss, "acc": acc})
```#### OUTPUT:
### TensorFlow Reporter:
```py
reporter_callback = TFReportDisc(webhook_url)
reporter_callback.reporter.report("Starting TensorFlow...")
model.compile(...)
model.fit(x, y, batch_size=64, epochs=5, validation_split=0.2, callbacks=[reporter_callback])
```#### OUTPUT:
## Embedding Reports:
```py
reporter_callback = TFReportDisc(webhook_url, embed_reports=True)
```#### OUTPUT:
