Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ This package is currently not registered. To install `AdvancedProbabilisticCircu
The following example illustrates the construction of a probabilistic circuit and its use for density estimation.

```julia
using AdvancedProbabilisticCircuits, MLDatasets
using AdvancedProbabilisticCircuits, MLDatasets, DataFrames

# download Iris dataset if necessary
# Iris.download()
# Iris()

X = Iris.features()
X = Iris(as_df=false).features

# we can create a leaf node by passing the required scope as an argument
l = Normal(1) # Normal with scope = 1
Expand Down Expand Up @@ -97,7 +97,7 @@ values = zeros(iters)

@showprogress for i in 1:iters
grads = Zygote.gradient(m -> llh(m, X), pc)[1]
update!(pc, grads; η = η)
AdvancedProbabilisticCircuits.update!(pc, grads; η = η)
values[i] = llh(pc, X)
end

Expand Down