Skip to content
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

Some regularizers do not work #71

Open
amanoel opened this issue Dec 22, 2016 · 1 comment
Open

Some regularizers do not work #71

amanoel opened this issue Dec 22, 2016 · 1 comment

Comments

@amanoel
Copy link
Contributor

amanoel commented Dec 22, 2016

Hello,

I just noticed something weird in the code and thought it would be helpful to share it with you: the fact that the copy function makes a copy of the regularizer with no arguments, i.e.,

function copy(r::Regularizer)
  newr = typeof(r)()
  for field in @compat fieldnames(r)
    setfield!(newr, field, copy(getfield(r, field)))
  end
  newr
end

make it impossible to use regularizers that do require an argument, for instance fixed_latent_features and fixed_last_latent_features.
I guess one could solve this by also copying the arguments?

@madeleineudell
Copy link
Owner

madeleineudell commented Dec 23, 2016 via email

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

No branches or pull requests

2 participants