Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Add example configuration files #11

Merged
merged 2 commits into from Mar 6, 2017
Merged

Conversation

dennybritz
Copy link
Contributor

@dennybritz dennybritz commented Mar 4, 2017

Fixes #10

Also: I changed the default behavior for invalid configuration parameters to error instead of just printing a warning. I think that's more sensible and avoids confusion. There were a few parts in the code that still used old parameters but they were "silently ignored".

@dennybritz dennybritz requested a review from agoldie March 4, 2017 02:28
Copy link
Contributor

@agoldie agoldie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea to add example config files!

EXAMPLE_CONFIG_DIR = os.path.abspath(
os.path.join(os.path.dirname(__file__), "../../example_configs"))

def _load_model_from_config(config_path, params, vocab_info, mode):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe call 'params' something else here? Just weird to have a 'params' that you update with 'hparams' and then set as the input as 'params'.

@dennybritz dennybritz merged commit bad878b into master Mar 6, 2017
@dennybritz dennybritz deleted the feature/example-configs branch March 6, 2017 22:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants