Skip to content

This library lets you easily set up programing homeworks

Notifications You must be signed in to change notification settings

srcolinas/homework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homework

This library lets you easily set up programing homeworks.

Let's say you are teaching about neural networks and you wnat your students to implement gradient descent on their own. You could write the solution code in a file called ./source/gradient_descent.py as follows:

## homework:replace:on
#.dw = 
#.w = 
dw = compute_gradients()
w -= alpha * dw
## homework:replace:off

then, call homework ./source and it will generate a new folder source_homework, where the file ./source_homework/gradient_descent.py has be rewriten as:

## homework:start
dw = 
w = 
## homework:end

About

This library lets you easily set up programing homeworks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages