Skip to content

Remove hardcoded values and use train() and evaluate() functions' input parameters #199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

1Nigar357
Copy link

In the train and evaluate functions, the input parameters are not used in any part of the code. Instead, the places where the input parameters need to be used, the values have been hardcoded. Therefore, the user might pass wrong parameters to the function and the code would still function properly. To avoid this, I removed the hardcoded values and made use of the input value for the train and evaluate functions. I made changes to both the MNIST task and solution files.

Correction: Make use of input parameters instead of hardcoding
Correction: Manipulate the input parameters to the functions instead of hardcoding
Change the input parameter of the evaluate function from trainset_loader to testset_loader
@1Nigar357
Copy link
Author

@aamini @avaamini Please let me know if there are any changes that should be made. Also, thank you for the course. I came across this issue while working through it. I'm really enjoying learning from the course and solving these guided tasks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant