DSGT-DLP / Deep-Learning-Playground

Web Application where people new to Deep Learning can input a dataset and toy around with basic Pytorch modules without writing any code
MIT License
26 stars 8 forks source link

Unit tests for dl_eval #848

Closed karkir0003 closed 1 year ago

karkir0003 commented 1 year ago

Write unit tests for the compute_correct and compute_accuracy functions in dl_eval.py. You can approach writing these quick unit tests using pytest and having "dummy tensors". You can take inspiration from the test_loss_function.py setup-wise of the tensors