pylfi.journal.Journal

class pylfi.journal.Journal[source]

Journal class.

Journal with results and information created by the run of inference schemes.

Attributes

df

Methods

compute_hdi(theta, hdi_prob)

Highest (posterior) density interval

compute_point_est(theta, density, point_estimate)

Compute point estimate

compute_rmspe(theta_true, theta_pred)

Root mean square percentage error (RMSPE)

load(filename)

This method reads a saved journal from disk an returns it as an object.

save(filename)

Stores the journal to disk.

thetas_pred([size])

Parameters drawn from posterior predictive distribution

heatmap

plot_joint

plot_posterior

plot_prior

thetas_pred(size=50)[source]

Parameters drawn from posterior predictive distribution

compute_rmspe(theta_true, theta_pred)[source]

Root mean square percentage error (RMSPE)

compute_hdi(theta, hdi_prob)[source]

Highest (posterior) density interval

compute_point_est(theta, density, point_estimate)[source]

Compute point estimate

save(filename)[source]

Stores the journal to disk.

Function from ABCpy source code.

Parameters
filename: string

the location of the file to store the current object to.

classmethod load(filename)[source]

This method reads a saved journal from disk an returns it as an object.

Function from ABCpy source code.

Returns
abcpy.output.Journal

The journal object serialized in <filename>

Example
>>> jnl = Journal.load('example_output.jnl')
    ..

Notes

To store a journal use Journal.save(filename). Parameters ———- filename: string

The string representing the location of a file