mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 23:47:31 +03:00 
			
		
		
		
	Document defaults for Language.update
				
					
				
			This commit is contained in:
		
							parent
							
								
									44bac3981c
								
							
						
					
					
						commit
						aabcee1fd6
					
				|  | @ -324,12 +324,12 @@ and custom registered functions if needed. See the | ||||||
| > ``` | > ``` | ||||||
| 
 | 
 | ||||||
| | Name            | Description                                                                                                                                                                                        | | | Name            | Description                                                                                                                                                                                        | | ||||||
| | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||||||
| | `examples`      | A batch of [`Example`](/api/example) objects to learn from. ~~Iterable[Example]~~                                                                                                                  | | | `examples`      | A batch of [`Example`](/api/example) objects to learn from. ~~Iterable[Example]~~                                                                                                                  | | ||||||
| | _keyword-only_  |                                                                                                                                                                                                    | | | _keyword-only_  |                                                                                                                                                                                                    | | ||||||
| | `drop`          | The dropout rate. ~~float~~                                                                                                                                                                       | | | `drop`          | The dropout rate. Defaults to `0.0`. ~~float~~                                                                                                                                                     | | ||||||
| | `sgd`           | An optimizer. Will be created via [`create_optimizer`](#create_optimizer) if `None`. No optimizer will be used when set to `False`. Defaults to `None` ~~Union[Optimizer, None, Literal[False]]~~ | | | `sgd`           | An optimizer. Will be created via [`create_optimizer`](#create_optimizer) if `None`. No optimizer will be used when set to `False`. Defaults to `None`. ~~Union[Optimizer, None, Literal[False]]~~ | | ||||||
| | `losses`        | Dictionary to update with the loss, keyed by pipeline component. ~~Optional[Dict[str, float]]~~                                                                                                   | | | `losses`        | Dictionary to update with the loss, keyed by pipeline component. Defaults to `None`. ~~Optional[Dict[str, float]]~~                                                                                | | ||||||
| | `component_cfg` | Optional dictionary of keyword arguments for components, keyed by component names. Defaults to `None`. ~~Optional[Dict[str, Dict[str, Any]]]~~                                                     | | | `component_cfg` | Optional dictionary of keyword arguments for components, keyed by component names. Defaults to `None`. ~~Optional[Dict[str, Dict[str, Any]]]~~                                                     | | ||||||
| | **RETURNS**     | The updated `losses` dictionary. ~~Dict[str, float]~~                                                                                                                                              | | | **RETURNS**     | The updated `losses` dictionary. ~~Dict[str, float]~~                                                                                                                                              | | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user