Skip to content
Discussion options

You must be logged in to vote

Hi @jamnicki , from your latest message it seems that changing how the batch was generated works? These things can definitely affect the direction of how your model will be trained. If you want a 1:1 parity between the CLI (assuming you have a config file) and your Python code, you can use the spacy.cli.train:train() function to do so. Under the hood, it calls spacy.training.loop:train_while_improving() which contains the actual training loop. You can also use the latter or pattern your training loop from that function.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jamnicki
Comment options

Answer selected by jamnicki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf / accuracy Performance: accuracy feat / spancat Feature: Span Categorizer
2 participants