Registry / Framework

framework · v0.1.1
Flightdeck poisson-fit
Fit nonnegative counts using a log-rate prediction. Returns Poisson NLL without the target-only factorial term and the log-rate gradient.
Use Flightdeck poisson-fit
use vendor::fd_poisson_fit::poisson_fit;
Run the example
nest demo fd_poisson_fit@0.1.1
blyxc native-run fd_poisson_fit-demo/main.blyx
Example source and expected output
use vendor::fd_poisson_fit::poisson_fit;
fn main() { fd_poisson_fit(2, 7); }
Expected output
module {
func.func @main(%x: tensor<2x7xf32>, %target: tensor<2x7xf32>) -> (tensor<2x7xf32>, tensor<2x7xf32>) {
%v0 = stablehlo.constant dense<0.00000000000000000e+00> : tensor<2x7xf32>
%v1 = stablehlo.exponential %x : tensor<2x7xf32>
%v2 = stablehlo.multiply %target, %x : tensor<2x7xf32>
%v3 = stablehlo.subtract %v1, %v2 : tensor<2x7xf32>
%v4 = stablehlo.subtract %v1, %target : tensor<2x7xf32>
return %v3, %v4 : tensor<2x7xf32>, tensor<2x7xf32>
}
}
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | bf9c3d5003 | 6ddc81895cb3b06c506cbf5495e699f21eb789047520a8889b6bb08e0af5bf59 |
| 0.1.0 | Download ZIP · Browse files | d5835c5109 | e65f88c0270196e92cdd70e0c0f43e983d2b45fde3e459ec8794cdf81696da29 |