Gaussian/Student-t process model (wraps opaque C handle). More...
Public Member Functions | |
| procedure | init (self, config, atoms, ierr) |
| Initialize model with configuration and atom setup. | |
| procedure | train (self, r, e, g, n_obs, n_coords, ierr) |
| Train model on observations. R and G hold n_obs * n_coords values, E holds n_obs; a shorter array is refused with GPR_ERR_INVALID_ARG. | |
| procedure | train_marginal_likelihood (self, r, e, g, n_obs, n_coords, report, lengthscales, ierr) |
| Fit all rows by prior-free Gaussian marginal likelihood. The report and lengthscales are unchanged when an extent check rejects the call. | |
| procedure | update (self, r, e, g, n_new, n_coords, ierr) |
| Add observations and retrain. The array extents are checked as in train. | |
| procedure | append_fixed (self, r, e, g, n_new, n_coords, ierr) |
| Append rows without changing fitted hyperparameters or refactorizing. | |
| procedure | calibrate_forces (self, r, g_true, n_holdout, n_coords, nominal_probability, report, ierr) |
| Calibrate latent force marginals against held-out true gradients. | |
| procedure | calibrate_loo (self, nominal_probability, report, ierr) |
| Calibrate all fitted training channels by closed-form leave-one-out prediction without changing the model. | |
| procedure | predict (self, r_query, e_out, g_out, n_coords, ierr) |
| Predict energy and gradient at a query point. R_query and G_out hold n_coords values. | |
| procedure | predict_variance (self, r_query, var_e, var_g, n_coords, ierr) |
| Predict variance at a query point. R_query and var_G hold n_coords values. | |
| procedure | predict_full (self, r_query, e_out, g_out, var_e, var_g, n_coords, ierr) |
| Predict energy, gradient and their variances at a query point. | |
| procedure | predict_batch (self, r_queries, e_out, g_out, n_queries, n_coords, ierr, var_e, var_g) |
| Predict at n_queries points stored one after another in R_queries. var_E (n_queries) and var_G (n_queries*n_coords) are optional. | |
| procedure | predict_hessian (self, r_query, h_out, n_coords, ierr) |
| Posterior-mean Hessian (n_coords x n_coords, symmetric) at R_query. | |
| procedure | predict_hessian_action (self, r_query, v, hv_out, n_coords, ierr) |
| Apply the posterior-mean Hessian to v. All arrays hold n_coords values. | |
| procedure | prediction_supported (self, r_query, n_coords, supported, ierr) |
| Report whether the model's own kernel-support rule admits R_query. | |
| procedure | prediction_factors (self, r_query, n_coords, energy, scale, mean, kstar, weights, order, ierr) |
| Factors of one trained energy prediction. | |
| procedure | fit_iterations (self) |
| Optimizer iterations the last train ran, or -1 if missing. The count is rgmin's SCG steps plus the L-BFGS fallback steps that finish a stalled rgmin SCG fit. | |
| procedure | fit_restarts (self, restarts, ierr) |
| Restarts the last train needed: 1 after a restarted marginal-likelihood fit, otherwise 0. | |
| procedure | fit_stop_reason (self) |
| Why the last train stopped: "budget" when an rgmin fit exhausts its iteration budget, "library" when it does not, "restored scg point" when a rejected L-BFGS fallback restores the SCG point, "wall-clock limit" when the wall is already spent, "non-finite marginal likelihood" when a failed fit keeps a non-finite input marginal likelihood, "unset" before any train, and "missing" for a NULL handle. | |
| procedure | set_rff_features (self, n_features, force_tol_fraction, ierr) |
| Configure the random-feature count or automatic held-out selection (-1). | |
| procedure | get_rff_selection (self, selection, ierr) |
| Copy the stored held-out random-feature selection report. | |
| procedure | set_rigid_null_deflation (self, enabled, ierr) |
| Enable or disable rigid-motion nullspace deflation on training factorizations. | |
| procedure | get_rigid_null_deflation (self, ierr) |
| Query whether rigid-motion nullspace deflation is enabled. | |
| procedure | predict_energy_variance_interval (self, r_queries, n_queries, n_coords, lower, upper, ierr) |
| Certified energy-variance intervals for n_queries contiguous points (ABI 1.14). | |
| procedure | noise_floor_report (self, report, ierr) |
| Condition-floored noise and certificate gap of the trained model (ABI 1.14). | |
| procedure | mean_hessian_batch (self, r, n_points, n_coords, h_out, options, residuals, report, ierr) |
| Posterior-mean Hessians at n_points contiguous points: H_out holds n_points row-major n_coords x n_coords blocks. residuals (6 per point) receives the rigid-generator norms ||H g_k|| of the raw Hessian. | |
| procedure | mean_hessian_action_batch (self, r, n_points, n_coords, v, n_vectors, hv_out, options, report, ierr) |
| Posterior-mean Hessian actions: V holds n_vectors vectors per point (point-major); Hv_out the same layout. | |
| procedure | hessian_bilinear_covariance (self, r, n_points, n_coords, v, n_left, w, n_right, cov_out, options, report, ierr) |
| Posterior covariance of v_i^T H w_j, one (n_left*n_right)^2 block per point. A probabilistic estimate, not a bound. | |
| procedure | hessian_trace_variance (self, r, n_points, n_coords, a, var_out, options, report, ierr) |
| Posterior variance of tr(A dH) for one symmetric A per point. | |
| procedure | posterior_variance_batch (self, r, n_points, n_coords, var_e, var_g, options, report, ierr) |
| Posterior variance of the energy and of each gradient component. | |
| procedure | condition_fixed (self, r_new, e_new, g_new, n_new, r_query, n_query, n_coords, e_out, g_out, var_e, var_g, options, report, ierr, h_new, hvp, user_data) |
| Condition on n_new oracle rows at fixed hyperparameters, then predict energy, gradient and their variances at n_query points. When H_new or hvp is supplied, the fixed-point Hessian is validated and used in subsequent Vineyard prefactor calculations at R_new. | |
| procedure | condition_fixed_hessian (self, r_new, e_new, g_new, n_new, r_query, n_query, n_coords, e_out, g_out, var_e, var_g, h_new, hvp, user_data, options, report, ierr) |
| Condition on a fixed point with an optional exact Hessian H_new or Hessian-vector-product callback hvp, then predict at n_query points. | |
| procedure | model_type (self) |
| GPR_MODEL_GP or GPR_MODEL_TP. | |
| procedure | n_lengthscales (self) |
| Number of kernel lengthscale parameters. | |
| procedure | get_lengthscales (self, out, ierr) |
| Get lengthscale values. out must hold n_lengthscales() values; a shorter array is refused with GPR_ERR_INVALID_ARG. | |
| procedure | set_lengthscales (self, values, n, ierr) |
| Set lengthscale values. values must hold n values. | |
| procedure | get_magn_sigma2 (self, val, ierr) |
| Get signal variance. | |
| procedure | set_magn_sigma2 (self, val, ierr) |
| Set signal variance. | |
| procedure | get_sigma2 (self, val, ierr) |
| Get noise variance. | |
| procedure | set_sigma2 (self, val, ierr) |
| Set noise variance. | |
| procedure | get_jitter (self, val, ierr) |
| Configured numerical diagonal jitter variance. | |
| procedure | set_hssvd_backend (self, enabled, ierr) |
| Select the HS-SVD stable-basis backend for the next training call. | |
| procedure | get_hssvd_backend (self, enabled, ierr) |
| Return whether the HS-SVD stable-basis backend is selected. | |
| procedure | get_alpha (self, alpha, ierr) |
| Posterior mean weights. size(alpha) is the buffer capacity passed to C. | |
| procedure | n_observations (self) |
| Number of training observations. | |
| procedure | tp_prefactor (self, val, ierr) |
| TP prefactor (valid after training, TP models only). | |
| procedure | is_valid (self) |
| procedure | release (self) |
| generic, public | assignment assign |
| final | gpmodel_finalize (self) |
| type(gpmodel) function | gpmodel_constructor (model_type) |
| Create a GP or TP model. | |
Public Attributes | |
| integer, pointer | references => null() |
Gaussian/Student-t process model (wraps opaque C handle).
Definition at line 2708 of file gpridge.f90.
|
final |
Definition at line 2764 of file gpridge.f90.
| procedure gpridge::gpmodel::append_fixed | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r, | ||
| real(c_double), dimension(:), intent(in), contiguous | e, | ||
| real(c_double), dimension(:), intent(in), contiguous | g, | ||
| integer, intent(in) | n_new, | ||
| integer, intent(in) | n_coords, | ||
| integer, intent(out), optional | ierr ) |
Append rows without changing fitted hyperparameters or refactorizing.
Definition at line 2717 of file gpridge.f90.
| generic, public gpridge::gpmodel::assignment |
Definition at line 2763 of file gpridge.f90.
| procedure gpridge::gpmodel::calibrate_forces | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r, | ||
| real(c_double), dimension(:), intent(in), contiguous | g_true, | ||
| integer, intent(in) | n_holdout, | ||
| integer, intent(in) | n_coords, | ||
| real(c_double), intent(in) | nominal_probability, | ||
| type(calibrationreport) | report, | ||
| integer, intent(out), optional | ierr ) |
Calibrate latent force marginals against held-out true gradients.
Definition at line 2718 of file gpridge.f90.
| procedure gpridge::gpmodel::calibrate_loo | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), intent(in) | nominal_probability, | ||
| type(calibrationreport) | report, | ||
| integer, intent(out), optional | ierr ) |
Calibrate all fitted training channels by closed-form leave-one-out prediction without changing the model.
Definition at line 2719 of file gpridge.f90.
| procedure gpridge::gpmodel::condition_fixed | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r_new, | ||
| real(c_double), dimension(:), intent(in), contiguous | e_new, | ||
| real(c_double), dimension(:), intent(in), contiguous | g_new, | ||
| integer, intent(in) | n_new, | ||
| real(c_double), dimension(:), intent(in), contiguous | r_query, | ||
| integer, intent(in) | n_query, | ||
| integer, intent(in) | n_coords, | ||
| real(c_double), dimension(:), contiguous | e_out, | ||
| real(c_double), dimension(:), contiguous | g_out, | ||
| real(c_double), dimension(:), contiguous | var_e, | ||
| real(c_double), dimension(:), contiguous | var_g, | ||
| type(derivativeoptions), intent(in), optional | options, | ||
| type(derivativereport), intent(inout), optional | report, | ||
| integer, intent(out), optional | ierr, | ||
| real(c_double), dimension(:), intent(in), optional, target, contiguous | h_new, | ||
| procedure(gpr_hvp_interface), optional | hvp, | ||
| type(c_ptr), intent(in), optional | user_data ) |
Condition on n_new oracle rows at fixed hyperparameters, then predict energy, gradient and their variances at n_query points. When H_new or hvp is supplied, the fixed-point Hessian is validated and used in subsequent Vineyard prefactor calculations at R_new.
Definition at line 2744 of file gpridge.f90.
| procedure gpridge::gpmodel::condition_fixed_hessian | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r_new, | ||
| real(c_double), dimension(:), intent(in), contiguous | e_new, | ||
| real(c_double), dimension(:), intent(in), contiguous | g_new, | ||
| integer, intent(in) | n_new, | ||
| real(c_double), dimension(:), intent(in), contiguous | r_query, | ||
| integer, intent(in) | n_query, | ||
| integer, intent(in) | n_coords, | ||
| real(c_double), dimension(:), contiguous | e_out, | ||
| real(c_double), dimension(:), contiguous | g_out, | ||
| real(c_double), dimension(:), contiguous | var_e, | ||
| real(c_double), dimension(:), contiguous | var_g, | ||
| real(c_double), dimension(:), intent(in), optional, target, contiguous | h_new, | ||
| procedure(gpr_hvp_interface), optional | hvp, | ||
| type(c_ptr), intent(in), optional | user_data, | ||
| type(derivativeoptions), intent(in), optional | options, | ||
| type(derivativereport), intent(inout), optional | report, | ||
| integer, intent(out), optional | ierr ) |
Condition on a fixed point with an optional exact Hessian H_new or Hessian-vector-product callback hvp, then predict at n_query points.
Definition at line 2745 of file gpridge.f90.
| procedure gpridge::gpmodel::fit_iterations | ( | class(gpmodel), intent(in) | self | ) |
Optimizer iterations the last train ran, or -1 if missing. The count is rgmin's SCG steps plus the L-BFGS fallback steps that finish a stalled rgmin SCG fit.
Definition at line 2728 of file gpridge.f90.
| procedure gpridge::gpmodel::fit_restarts | ( | class(gpmodel), intent(in) | self, |
| integer, intent(inout) | restarts, | ||
| integer, intent(out), optional | ierr ) |
Restarts the last train needed: 1 after a restarted marginal-likelihood fit, otherwise 0.
Definition at line 2729 of file gpridge.f90.
| procedure gpridge::gpmodel::fit_stop_reason | ( | class(gpmodel), intent(in) | self | ) |
Why the last train stopped: "budget" when an rgmin fit exhausts its iteration budget, "library" when it does not, "restored scg point" when a rejected L-BFGS fallback restores the SCG point, "wall-clock limit" when the wall is already spent, "non-finite marginal likelihood" when a failed fit keeps a non-finite input marginal likelihood, "unset" before any train, and "missing" for a NULL handle.
Definition at line 2730 of file gpridge.f90.
| procedure gpridge::gpmodel::get_alpha | ( | class(gpmodel), intent(in) | self, |
| real(c_double), dimension(:), intent(inout), contiguous | alpha, | ||
| integer, intent(out), optional | ierr ) |
Posterior mean weights. size(alpha) is the buffer capacity passed to C.
Definition at line 2757 of file gpridge.f90.
| procedure gpridge::gpmodel::get_hssvd_backend | ( | class(gpmodel), intent(in) | self, |
| logical, intent(out) | enabled, | ||
| integer, intent(out), optional | ierr ) |
Return whether the HS-SVD stable-basis backend is selected.
Definition at line 2756 of file gpridge.f90.
| procedure gpridge::gpmodel::get_jitter | ( | class(gpmodel), intent(in) | self, |
| real(c_double), intent(inout) | val, | ||
| integer, intent(out), optional | ierr ) |
Configured numerical diagonal jitter variance.
Definition at line 2754 of file gpridge.f90.
| procedure gpridge::gpmodel::get_lengthscales | ( | class(gpmodel), intent(in) | self, |
| real(c_double), dimension(:), intent(out), contiguous | out, | ||
| integer, intent(out), optional | ierr ) |
Get lengthscale values. out must hold n_lengthscales() values; a shorter array is refused with GPR_ERR_INVALID_ARG.
Definition at line 2748 of file gpridge.f90.
| procedure gpridge::gpmodel::get_magn_sigma2 | ( | class(gpmodel), intent(in) | self, |
| real(c_double), intent(out) | val, | ||
| integer, intent(out), optional | ierr ) |
Get signal variance.
Definition at line 2750 of file gpridge.f90.
| procedure gpridge::gpmodel::get_rff_selection | ( | class(gpmodel), intent(in) | self, |
| type(rffselection), intent(out) | selection, | ||
| integer, intent(out), optional | ierr ) |
Copy the stored held-out random-feature selection report.
Definition at line 2732 of file gpridge.f90.
| procedure gpridge::gpmodel::get_rigid_null_deflation | ( | class(gpmodel), intent(in) | self, |
| integer, intent(out), optional | ierr ) |
Query whether rigid-motion nullspace deflation is enabled.
Definition at line 2734 of file gpridge.f90.
| procedure gpridge::gpmodel::get_sigma2 | ( | class(gpmodel), intent(in) | self, |
| real(c_double), intent(out) | val, | ||
| integer, intent(out), optional | ierr ) |
Get noise variance.
Definition at line 2752 of file gpridge.f90.
| type(gpmodel) function gpridge::gpmodel::gpmodel_constructor | ( | integer(c_int), intent(in) | model_type | ) |
Create a GP or TP model.
Definition at line 3063 of file gpridge.f90.
| procedure gpridge::gpmodel::hessian_bilinear_covariance | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r, | ||
| integer, intent(in) | n_points, | ||
| integer, intent(in) | n_coords, | ||
| real(c_double), dimension(:), intent(in), contiguous | v, | ||
| integer, intent(in) | n_left, | ||
| real(c_double), dimension(:), intent(in), contiguous | w, | ||
| integer, intent(in) | n_right, | ||
| real(c_double), dimension(:), contiguous | cov_out, | ||
| type(derivativeoptions), intent(in), optional | options, | ||
| type(derivativereport), intent(inout), optional | report, | ||
| integer, intent(out), optional | ierr ) |
Posterior covariance of v_i^T H w_j, one (n_left*n_right)^2 block per point. A probabilistic estimate, not a bound.
Definition at line 2740 of file gpridge.f90.
| procedure gpridge::gpmodel::hessian_trace_variance | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r, | ||
| integer, intent(in) | n_points, | ||
| integer, intent(in) | n_coords, | ||
| real(c_double), dimension(:), intent(in), contiguous | a, | ||
| real(c_double), dimension(:), contiguous | var_out, | ||
| type(derivativeoptions), intent(in), optional | options, | ||
| type(derivativereport), intent(inout), optional | report, | ||
| integer, intent(out), optional | ierr ) |
Posterior variance of tr(A dH) for one symmetric A per point.
Definition at line 2742 of file gpridge.f90.
| procedure gpridge::gpmodel::init | ( | class(gpmodel), intent(inout) | self, |
| type(modelconfig), intent(in) | config, | ||
| type(atomsconfig), intent(in) | atoms, | ||
| integer, intent(out), optional | ierr ) |
Initialize model with configuration and atom setup.
Definition at line 2713 of file gpridge.f90.
| procedure gpridge::gpmodel::is_valid | ( | class(gpmodel), intent(in) | self | ) |
Definition at line 2760 of file gpridge.f90.
| procedure gpridge::gpmodel::mean_hessian_action_batch | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r, | ||
| integer, intent(in) | n_points, | ||
| integer, intent(in) | n_coords, | ||
| real(c_double), dimension(:), intent(in), contiguous | v, | ||
| integer, intent(in) | n_vectors, | ||
| real(c_double), dimension(:), contiguous | hv_out, | ||
| type(derivativeoptions), intent(in), optional | options, | ||
| type(derivativereport), intent(inout), optional | report, | ||
| integer, intent(out), optional | ierr ) |
Posterior-mean Hessian actions: V holds n_vectors vectors per point (point-major); Hv_out the same layout.
Definition at line 2739 of file gpridge.f90.
| procedure gpridge::gpmodel::mean_hessian_batch | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r, | ||
| integer, intent(in) | n_points, | ||
| integer, intent(in) | n_coords, | ||
| real(c_double), dimension(:), contiguous | h_out, | ||
| type(derivativeoptions), intent(in), optional | options, | ||
| real(c_double), dimension(:), intent(inout), optional, target, contiguous | residuals, | ||
| type(derivativereport), intent(inout), optional | report, | ||
| integer, intent(out), optional | ierr ) |
Posterior-mean Hessians at n_points contiguous points: H_out holds n_points row-major n_coords x n_coords blocks. residuals (6 per point) receives the rigid-generator norms ||H g_k|| of the raw Hessian.
Definition at line 2738 of file gpridge.f90.
| procedure gpridge::gpmodel::model_type | ( | class(gpmodel), intent(in) | self | ) |
GPR_MODEL_GP or GPR_MODEL_TP.
Definition at line 2746 of file gpridge.f90.
| procedure gpridge::gpmodel::n_lengthscales | ( | class(gpmodel), intent(in) | self | ) |
Number of kernel lengthscale parameters.
Definition at line 2747 of file gpridge.f90.
| procedure gpridge::gpmodel::n_observations | ( | class(gpmodel), intent(in) | self | ) |
Number of training observations.
Definition at line 2758 of file gpridge.f90.
| procedure gpridge::gpmodel::noise_floor_report | ( | class(gpmodel), intent(in) | self, |
| type(noisefloorreport), intent(out) | report, | ||
| integer, intent(out), optional | ierr ) |
Condition-floored noise and certificate gap of the trained model (ABI 1.14).
Definition at line 2737 of file gpridge.f90.
| procedure gpridge::gpmodel::posterior_variance_batch | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r, | ||
| integer, intent(in) | n_points, | ||
| integer, intent(in) | n_coords, | ||
| real(c_double), dimension(:), contiguous | var_e, | ||
| real(c_double), dimension(:), contiguous | var_g, | ||
| type(derivativeoptions), intent(in), optional | options, | ||
| type(derivativereport), intent(inout), optional | report, | ||
| integer, intent(out), optional | ierr ) |
Posterior variance of the energy and of each gradient component.
Definition at line 2743 of file gpridge.f90.
| procedure gpridge::gpmodel::predict | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r_query, | ||
| real(c_double), intent(out) | e_out, | ||
| real(c_double), dimension(:), intent(out), contiguous | g_out, | ||
| integer, intent(in) | n_coords, | ||
| integer, intent(out), optional | ierr ) |
Predict energy and gradient at a query point. R_query and G_out hold n_coords values.
Definition at line 2720 of file gpridge.f90.
| procedure gpridge::gpmodel::predict_batch | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r_queries, | ||
| real(c_double), dimension(:), contiguous | e_out, | ||
| real(c_double), dimension(:), contiguous | g_out, | ||
| integer, intent(in) | n_queries, | ||
| integer, intent(in) | n_coords, | ||
| integer, intent(out), optional | ierr, | ||
| real(c_double), dimension(:), intent(inout), optional, target, contiguous | var_e, | ||
| real(c_double), dimension(:), intent(inout), optional, target, contiguous | var_g ) |
Predict at n_queries points stored one after another in R_queries. var_E (n_queries) and var_G (n_queries*n_coords) are optional.
Definition at line 2723 of file gpridge.f90.
| procedure gpridge::gpmodel::predict_energy_variance_interval | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r_queries, | ||
| integer, intent(in) | n_queries, | ||
| integer, intent(in) | n_coords, | ||
| real(c_double), dimension(:), contiguous | lower, | ||
| real(c_double), dimension(:), contiguous | upper, | ||
| integer, intent(out), optional | ierr ) |
Certified energy-variance intervals for n_queries contiguous points (ABI 1.14).
Definition at line 2735 of file gpridge.f90.
| procedure gpridge::gpmodel::predict_full | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r_query, | ||
| real(c_double) | e_out, | ||
| real(c_double), dimension(:), contiguous | g_out, | ||
| real(c_double) | var_e, | ||
| real(c_double), dimension(:), contiguous | var_g, | ||
| integer, intent(in) | n_coords, | ||
| integer, intent(out), optional | ierr ) |
Predict energy, gradient and their variances at a query point.
Definition at line 2722 of file gpridge.f90.
| procedure gpridge::gpmodel::predict_hessian | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r_query, | ||
| real(c_double), dimension(:), intent(out), contiguous | h_out, | ||
| integer, intent(in) | n_coords, | ||
| integer, intent(out), optional | ierr ) |
Posterior-mean Hessian (n_coords x n_coords, symmetric) at R_query.
Definition at line 2724 of file gpridge.f90.
| procedure gpridge::gpmodel::predict_hessian_action | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r_query, | ||
| real(c_double), dimension(:), intent(in), contiguous | v, | ||
| real(c_double), dimension(:), contiguous | hv_out, | ||
| integer, intent(in) | n_coords, | ||
| integer, intent(out), optional | ierr ) |
Apply the posterior-mean Hessian to v. All arrays hold n_coords values.
Definition at line 2725 of file gpridge.f90.
| procedure gpridge::gpmodel::predict_variance | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r_query, | ||
| real(c_double), intent(out) | var_e, | ||
| real(c_double), dimension(:), intent(out), contiguous | var_g, | ||
| integer, intent(in) | n_coords, | ||
| integer, intent(out), optional | ierr ) |
Predict variance at a query point. R_query and var_G hold n_coords values.
Definition at line 2721 of file gpridge.f90.
| procedure gpridge::gpmodel::prediction_factors | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r_query, | ||
| integer, intent(in) | n_coords, | ||
| real(c_double), intent(out) | energy, | ||
| real(c_double), intent(out) | scale, | ||
| real(c_double), intent(out) | mean, | ||
| real(c_double), dimension(:), intent(out), contiguous | kstar, | ||
| real(c_double), dimension(:), intent(out), contiguous | weights, | ||
| integer, intent(out) | order, | ||
| integer, intent(out), optional | ierr ) |
Factors of one trained energy prediction.
Definition at line 2727 of file gpridge.f90.
| procedure gpridge::gpmodel::prediction_supported | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r_query, | ||
| integer, intent(in) | n_coords, | ||
| logical | supported, | ||
| integer, intent(out), optional | ierr ) |
Report whether the model's own kernel-support rule admits R_query.
Definition at line 2726 of file gpridge.f90.
| procedure gpridge::gpmodel::release | ( | class(gpmodel), intent(inout) | self | ) |
Definition at line 2761 of file gpridge.f90.
| procedure gpridge::gpmodel::set_hssvd_backend | ( | class(gpmodel), intent(inout) | self, |
| logical, intent(in) | enabled, | ||
| integer, intent(out), optional | ierr ) |
Select the HS-SVD stable-basis backend for the next training call.
Definition at line 2755 of file gpridge.f90.
| procedure gpridge::gpmodel::set_lengthscales | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | values, | ||
| integer, intent(in) | n, | ||
| integer, intent(out), optional | ierr ) |
Set lengthscale values. values must hold n values.
Definition at line 2749 of file gpridge.f90.
| procedure gpridge::gpmodel::set_magn_sigma2 | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), intent(in) | val, | ||
| integer, intent(out), optional | ierr ) |
Set signal variance.
Definition at line 2751 of file gpridge.f90.
| procedure gpridge::gpmodel::set_rff_features | ( | class(gpmodel), intent(inout) | self, |
| integer, intent(in) | n_features, | ||
| real(c_double), intent(in), optional | force_tol_fraction, | ||
| integer, intent(out), optional | ierr ) |
Configure the random-feature count or automatic held-out selection (-1).
Definition at line 2731 of file gpridge.f90.
| procedure gpridge::gpmodel::set_rigid_null_deflation | ( | class(gpmodel), intent(inout) | self, |
| logical, intent(in) | enabled, | ||
| integer, intent(out), optional | ierr ) |
Enable or disable rigid-motion nullspace deflation on training factorizations.
Definition at line 2733 of file gpridge.f90.
| procedure gpridge::gpmodel::set_sigma2 | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), intent(in) | val, | ||
| integer, intent(out), optional | ierr ) |
Set noise variance.
Definition at line 2753 of file gpridge.f90.
| procedure gpridge::gpmodel::tp_prefactor | ( | class(gpmodel), intent(in) | self, |
| real(c_double), intent(out) | val, | ||
| integer, intent(out), optional | ierr ) |
TP prefactor (valid after training, TP models only).
Definition at line 2759 of file gpridge.f90.
| procedure gpridge::gpmodel::train | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r, | ||
| real(c_double), dimension(:), intent(in), contiguous | e, | ||
| real(c_double), dimension(:), intent(in), contiguous | g, | ||
| integer, intent(in) | n_obs, | ||
| integer, intent(in) | n_coords, | ||
| integer, intent(out), optional | ierr ) |
Train model on observations. R and G hold n_obs * n_coords values, E holds n_obs; a shorter array is refused with GPR_ERR_INVALID_ARG.
Definition at line 2714 of file gpridge.f90.
| procedure gpridge::gpmodel::train_marginal_likelihood | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r, | ||
| real(c_double), dimension(:), intent(in), contiguous | e, | ||
| real(c_double), dimension(:), intent(in), contiguous | g, | ||
| integer, intent(in) | n_obs, | ||
| integer, intent(in) | n_coords, | ||
| type(marginallikelihoodreport) | report, | ||
| real(c_double), dimension(:), contiguous | lengthscales, | ||
| integer, intent(out), optional | ierr ) |
Fit all rows by prior-free Gaussian marginal likelihood. The report and lengthscales are unchanged when an extent check rejects the call.
Definition at line 2715 of file gpridge.f90.
| procedure gpridge::gpmodel::update | ( | class(gpmodel), intent(inout) | self, |
| real(c_double), dimension(:), intent(in), contiguous | r, | ||
| real(c_double), dimension(:), intent(in), contiguous | e, | ||
| real(c_double), dimension(:), intent(in), contiguous | g, | ||
| integer, intent(in) | n_new, | ||
| integer, intent(in) | n_coords, | ||
| integer, intent(out), optional | ierr ) |
Add observations and retrain. The array extents are checked as in train.
Definition at line 2716 of file gpridge.f90.
| integer, pointer gpridge::gpmodel::references => null() |
Definition at line 2711 of file gpridge.f90.