mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	This commit is contained in:
		
							parent
							
								
									f7a25d69f7
								
							
						
					
					
						commit
						92d7832a86
					
				| 
						 | 
					@ -554,9 +554,10 @@ def train(
 | 
				
			||||||
                        iter_since_best = 0
 | 
					                        iter_since_best = 0
 | 
				
			||||||
                        best_score = current_score
 | 
					                        best_score = current_score
 | 
				
			||||||
                    if iter_since_best >= n_early_stopping:
 | 
					                    if iter_since_best >= n_early_stopping:
 | 
				
			||||||
 | 
					                        iter_current = i + 1
 | 
				
			||||||
                        msg.text(
 | 
					                        msg.text(
 | 
				
			||||||
                            "Early stopping, best iteration "
 | 
					                            "Early stopping, best iteration "
 | 
				
			||||||
                            "is: {}".format(i - iter_since_best)
 | 
					                            "is: {}".format(iter_current - iter_since_best)
 | 
				
			||||||
                        )
 | 
					                        )
 | 
				
			||||||
                        msg.text(
 | 
					                        msg.text(
 | 
				
			||||||
                            "Best score = {}; Final iteration "
 | 
					                            "Best score = {}; Final iteration "
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user