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

custom def on kernel_initializer #282

Open
5 tasks done
terry07 opened this issue Oct 22, 2020 · 0 comments
Open
5 tasks done

custom def on kernel_initializer #282

terry07 opened this issue Oct 22, 2020 · 0 comments

Comments

@terry07
Copy link

terry07 commented Oct 22, 2020

Before filing an issue, please make sure to tick the following boxes.

  • Make sure your issue hasn't been filed already. Use GitHub search or manually check the existing issues, also the closed ones. Also, make sure to check the FAQ section of our readme.

  • Install latest hyperas from GitHub:
    pip install git+git://github.com/maxpumperla/hyperas.git

  • Install latest hyperopt from GitHub:
    pip install git+git://github.com/hyperopt/hyperopt.git

  • We have continuous integration running with Travis and make sure the build stays "green". If, after installing test utilities with pip install pytest pytest-cov pep8 pytest-pep8, you can't successfully run python -m pytest there's very likely a problem on your side that should be addressed before creating an issue.

  • Create a gist containing your complete script, or a minimal version of it, that can be used to reproduce your issue. Also, add your full stack trace to that gist. In many cases your error message is enough to at least give some guidance.

I try to insert one of my functions into kernel_initializer, but i am getting the next error:

Code:
model.add(Dense(49, activation='softmax', trainable=False, kernel_initializer = custom_kernel_init))

NameError: name 'custom_kernel_init' is not defined

Could you help me with this?
Kind regards,

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

1 participant