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

L-BFGS chose a non-descent direction #7

Open
ericleasemorgan opened this issue Jul 7, 2021 · 0 comments
Open

L-BFGS chose a non-descent direction #7

ericleasemorgan opened this issue Jul 7, 2021 · 0 comments

Comments

@ericleasemorgan
Copy link

Using the following command line, I am trying to re-create the out-of-the box BookNLP model:

./runjava novels.training/TrainCoref -training coref/annotatedData.txt -o coref/weights.txt

Unfortunately, processing does not complete, but instead returns the following error:

L1 = 2.0, L2 = 0.1
regressing with 0 training samples of length 0
Exception in thread "main" java.lang.RuntimeException: L-BFGS chose a non-descent direction: check your gradient!
	at novels.optimization.OptimizerState.backTrackingLineSearch(OWLQN.java:410)
	at novels.optimization.OWLQN.minimize(OWLQN.java:147)
	at novels.optimization.SparseRegression.regress(SparseRegression.java:39)
	at novels.training.TrainCoref.train(TrainCoref.java:170)
	at novels.training.TrainCoref.main(TrainCoref.java:244)

How do I denote the number of training samples, and how do I configure the value of L-BFGS?

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