Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

var for specific function #195

Open
ga72kud opened this issue Mar 17, 2022 · 0 comments
Open

var for specific function #195

ga72kud opened this issue Mar 17, 2022 · 0 comments

Comments

@ga72kud
Copy link

ga72kud commented Mar 17, 2022

Could variance function used for different functions of random variables

using StatsPlots
using Distributions
using Omega
using Random
using Flux
#school upper lane
饾挬up=normal(0.0, 2.0)
var(饾挬up )
饾挬bottom=饾挬up+normal(2.2, 1.1)
mean(饾挬bottom)
var(饾挬bottom)

does it work with the lift function

MethodError: no method matching var(::Omega.NonDet.URandVar{typeof(Omega.liftreifyapply), Tuple{typeof(+), Omega.Prim.Normal{Float64, Float64}, Omega.Prim.Normal{Float64, Float64}}}, ::Omega.Inference.FailUnsatAlg)
Closest candidates are:
var(::RandVar) at /home/michael/.julia/packages/Omega/SOWrW/src/dist/defaults.jl:10
var(::RandVar, !Matched::Omega.Dist.AnalyticAlg) at /home/michael/.julia/packages/Omega/SOWrW/src/dist/distalgs.jl:8
var(::Any; corrected, mean) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Statistics/src/Statistics.jl:198
var(x::Omega.NonDet.URandVar{typeof(Omega.liftreifyapply), Tuple{typeof(+), Omega.Prim.Normal{Float64, Float64}, Omega.Prim.Normal{Float64, Float64}}}) at defaults.jl:10
top-level scope at 12_uptobottom_lane.jl:11
eval at boot.jl:360 [inlined]

Status ~/Julia_Projects/03_causal_inference/04_omega/Project.toml
[052768ef] CUDA v2.6.3
[db1e321a] Callbacks v0.1.0
[7057c7e9] Cassette v0.3.10
[60f91f6f] CovarianceMatrices v0.10.4
[31c24e10] Distributions v0.23.12
[587475ba] Flux v0.11.6
[d0351b0e] InspectDR v0.4.3
[b964fa9f] LaTeXStrings v1.3.0
[b4f0291d] LazySets v1.56.1
[496038af] Lens v0.1.1
[1af16e33] Omega v0.1.1 https://github.com/zenna/Omega.jl.git#master
[d330b81b] PyPlot v2.10.0
[1e97bd63] ReachabilityAnalysis v0.16.5
[f3b207a7] StatsPlots v0.14.30
[b8865327] UnicodePlots v1.4.0
[e88e6eb3] Zygote v0.6.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant