Description Usage Arguments Value Note References Examples
View source: R/static_inference.R
Runs Importance sampling evidence updating from an AMIDST data stream
1 2 | importance_sampling_from_stream(network, target_variable, evidence_variables,
input_stream, sample_size, parallel = T, seed = 3L)
|
network |
a java object of class |
target_variable |
a string representing the name of variable whose posterior distribution will be computed |
evidence_variables |
a vector with the names of the observed variables |
input_stream |
and AMIDST data stream |
sample_size |
the sample size to be used during the simulation |
parallel |
a |
seed |
the seed for the genertion of random numbers |
a data.frame
with the posterior distribution of the target
variable for each item in the strea
The function computes the posterior distribution given some evidence for all the items in the input stream.
A. Salmeron, D. Ramos-Lopez, H. Borchani, A.M. Martinez, A.R. Masegosa, A. Fernandez, H. Langseth, A.L. Madsen, T.D. Nielsen (2015) Parallel importance sampling in conditional linear Gaussian networks. CAEPIA'2015. Lecture Notes in Artificial Intelligence 9422, 36-46.
1 2 3 4 5 6 7 8 9 10 | network <- load_amidst_bn(system.file("extdata","WasteIncinerator.bn",
package="ramidst"))
sample_stream <- amidst_data_stream(system.file("extdata",
"WasteIncineratorSample.arff",package="ramidst"))
posterior <- importance_sampling_from_stream(network,"B",c("F","E"),
sample_stream,50L)
posterior
posterior <- importance_sampling_from_stream(network,"L",c("F","E"),
sample_stream,50L)
posterior
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.