Closed cmishra closed 7 years ago
Hi, does anyone know how to properly use set_layer() in the activity regularizer implementation? I can't find it documented anywhere.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.
I've implemented a sparsity regularizer which seems to be working. If there's interest and someone can offer guidance, I can modify it as needed before submitting a pull request. I'd have it done fairly quickly once the semester ends (semester ends in ~10 days).
I used this to implement a sparse autoencoder. I think it works because on normalized data 3D (subtracted mean, divided by standard dev), with the sparsity parameter being 0 and the coefficient being 1, ADAM couldn't achieve better than 1 MSE (which is what we'd expect). I would need to implement real test cases though.
Code is below:
Update 1: Code is not currently working. If anyone can offer guidance, I'd appreciate it Update 2: Code works! (I think).