cdf
- QRNN.cdf(x)[source]
Approximate the posterior CDF for given inputs x.
Propagates the inputs in x forward through the network and approximates the posterior CDF by a piecewise linear function.
The piecewise linear function is given by its values at approximate quantiles
for where are the quantiles to be estimated by the network. The values for and are computed using- Parameters:
x (np.array) – Array of shape (n, m) containing n inputs for which to predict the conditional quantiles.
- Returns:
Tuple (xs, fs) containing the
-values in xs and corresponding values of the posterior CDF in fs.