RoboticsClubIITJ / ML-DL-implementation

An implementation of ML and DL algorithms from scratch in python using nothing but NumPy and Matplotlib.
BSD 3-Clause "New" or "Revised" License
48 stars 69 forks source link

Adding Tests for the repo #85

Closed agrawalshubham01 closed 3 years ago

agrawalshubham01 commented 3 years ago

Currently we are missing important part of the repo i.e the tests. I believe this couldn't be done in 1 PR. So multiple small PRs could be made. This could be tested by pytest. Then this could be merged with travis-ci.

parva-jain commented 3 years ago

Can you tell what exactly the test scripts should contain and also one script for one function test or multiple functions?

parva-jain commented 3 years ago

As per my understanding, I can make a test folder inside MLib and then a loss folder inside the test folder and then different test scripts for all loss functions, right?

agrawalshubham01 commented 3 years ago

@parva-jain I guess I will first initialise test and write an example, so that there would be no confusion. The basic structure would be like for activation.py we can create a file in MLlib/Tests named test_activation.py. Each subfolder could have another sub folder inside it named Tests where tests can be added.

parva-jain commented 3 years ago

Alright...looking forward to contributing to it.

agrawalshubham01 commented 3 years ago

@parva-jain i have made pr for initialising pytest, after getting merge you could see that I have made a folder tests in which test_activations.py is there, we will mantain same hierarchy.

parva-jain commented 3 years ago

Alright.

kwanit1142 commented 3 years ago

Thanks to @hiteshidudeja , for adding the remaining Test modules for activation Functions. Closing this Finished Issue.