Skip to content

custom def on kernel_initializer #282

Open
@terry07

Description

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,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions