tfp.substrates.numpy.stats.log_soosum_exp
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
Computes the log-swap-one-out-sum of exp(logx).
tfp.substrates.numpy.stats.log_soosum_exp(
    logx, axis, keepdims=False, name=None
)
The swapped out element logx[i] is replaced with the log-leave-i-out
geometric mean of logx.
| Args | 
|---|
| logx | Floating-type Tensorrepresentinglog(x)wherexis some
positive value. | 
| axis | The dimensions to sum across. If None(the default), reduces all
dimensions. Must be in the range[-rank(logx), rank(logx)].
Default value:None(i.e., reduce over all dims). | 
| keepdims | If true, retains reduced dimensions with length 1.
Default value: False(i.e., keep all dims inlog_mean_x). | 
| name | Python strname prefixed to Ops created by this function.
Default value:None(i.e.,"log_soomean_exp"). | 
| Returns | 
|---|
| log_soomean_x | logx.dtypeTensorcharacterized by the natural-log of the
sum ofxexcept that the elementlogx[i]is replaced with the
log of the leave-i-out Geometric-average. The sum of the gradient oflog_soosum_xisn, i.e., the number of reduced elements.
Mathematicallylog_soomean_x` is,log_soomean_x[i] = log(Avg{h[j ; i] : j=0, ..., m-1})
h[j ; i] = { u[j]                              j!=i
           { GeometricAverage{u[k] : k != i}   j==i
 | 
| log_sum_x | logx.dtypeTensorcorresponding to the natural-log of the
average ofx. The sum of the gradient oflog_mean_xis1. Has
reduced shape oflogx(peraxisandkeepdims). | 
  
  
 
  
    
    
      
       
    
    
  
  
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2023-11-21 UTC.
  
  
  
    
      [null,null,["Last updated 2023-11-21 UTC."],[],[]]