mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	Relax minimum gradient by factor 10. Important for learning
This commit is contained in:
		
							parent
							
								
									ad8f851faa
								
							
						
					
					
						commit
						eb145dc1b8
					
				|  | @ -116,7 +116,7 @@ cdef class BeamParser(Parser): | |||
|                 break | ||||
|         else: | ||||
|             violn.check_crf(pred, gold) | ||||
|         min_grad = 0.01 ** (itn+1) | ||||
|         min_grad = 0.001 ** (itn+1) | ||||
|         histories = zip(violn.p_probs, violn.p_hist) + zip(violn.g_probs, violn.g_hist) | ||||
|         random.shuffle(histories) | ||||
|         for grad, hist in histories: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user