% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/svgd.R
\name{create_pmf_model}
\alias{create_pmf_model}
\title{Create PMF/PDF model from graph}
\usage{
create_pmf_model(graph, discrete = FALSE)
}
\arguments{
\item{graph}{Graph object (parameterized)}

\item{discrete}{Logical, whether distribution is discrete (default FALSE)}
}
\value{
Model function that takes (theta, data) and returns log-probabilities
}
\description{
Creates a probability mass/density function model from a parameterized graph
for use with SVGD or other inference methods.
}
\examples{
\dontrun{
graph <- create_graph(callback = my_callback, parameterized = TRUE, nr_samples = 5)
model <- create_pmf_model(graph, discrete = FALSE)

# Use with custom SVGD
svgd <- SVGD$new(
  model = model,
  observed_data = observed_times,
  theta_dim = 2,
  n_particles = 100
)
results <- svgd$optimize()
}

}
