JuliaRandom / JuliaRandom/RandomExtensions.jl

sprand as samples from sparse distribution

未关闭
#3 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Julia
星标
19
派生
2
PR 合并指标
30 天内没有已合并 PR

描述

I was thinking, in the spirit of this package, maybe `rand(Normal(),SparseMatrixCSC,p,m,n) ` could be better expressed as `rand(Bernoulli(p,Normal()),SparseMatrixCSC,m,n)` where `Bernoulli(p, Normal())` would be the "Gauss-Bernoulli" or "Spike-and-Slab" mixture distribution

P(x) = (1-p) delta(x)+ p Normal(x)

It seems to make things a bit more generic.

贡献指南

这个仓库没有索引到贡献指南

调研方向

No files or tests are named. Start by locating the current rand(Normal(), SparseMatrixCSC, p, m, n) entry point and reviewing how Bernoulli(p, Normal()) would represent the proposed sparse distribution; done means the API and resulting behavior are agreed and implemented.

由索引模型根据 Issue 内容生成。

评估

技术栈
julia
领域
data
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。