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

UnboundLocalError: local variable 'path' referenced before assignment #15

Open
cocokatta opened this issue Oct 25, 2017 · 1 comment
Open

Comments

@cocokatta
Copy link

Hi,

I was using your model trainer, but with considerably less data than from the given example

  1. Trying to train for 3 classes
  2. Approx. 50 sentences in the training set for each class

and what parameters should I provide in order to make a functioning/effective model.

Normally when I run with the given parameters we get an error, and so we were wondering if there was a better way to go about doing that.

Errors include:

  1. for the following paramters
    {
    "num_epochs": 1,
    "batch_size": 20,
    "num_filters": 32,
    "filter_sizes": "3,4,5",
    "embedding_dim": 50,
    "l2_reg_lambda": 0.0,
    "evaluate_every": 200,
    "dropout_keep_prob": 0.5
    }
    logging.critical('Accuracy on test set is {} based on the best model {}'.format(test_accuracy, path))
    UnboundLocalError: local variable 'path' referenced before assignment
@jiegzhan
Copy link
Owner

jiegzhan commented Nov 1, 2017

try smaller batch_size and evaluate_every

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