| abi_assess | R Documentation |
A wrapper around NeuralEstimators::assess() that automatically unpacks
the trained estimator and ABI input from a trained estimator object created by
abi_train.
abi_assess(
trained_estimator,
estimator_name = NULL,
use_gpu = TRUE,
verbose = TRUE
)
trained_estimator |
A trained estimator object returned by |
estimator_name |
Character string; optional name for the estimator (default: NULL). |
use_gpu |
Logical; whether to use GPU for assessment (default: TRUE). |
verbose |
Logical; whether to print progress information (default: TRUE). |
This function extracts the trained estimator and ABI input from the trained
estimator object, then extracts test parameters and summary statistics
from the ABI input, along with parameter names (theta), and passes them
to NeuralEstimators::assess(). The test set (theta_test and
Z_test) is used for assessment.
The returned object has class eam_abi_assess, which enables the use of
S3 methods like plot_cv_recovery for visualization.
A list with class eam_abi_assess containing:
Data frame with columns: m, k, j, estimator, parameter, estimate, truth
Data frame with runtime information
This function initializes the global Julia environment on first call.
## Not run:
# Train an estimator first
trained_estimator <- abi_train(
estimator = estimator,
abi_input = abi_input,
epochs = 100
)
# Assess the trained estimator
assessment <- abi_assess(
trained_estimator = trained_estimator,
estimator_name = "MyEstimator",
use_gpu = TRUE,
verbose = TRUE
)
# View the assessment results
str(assessment)
# Plot parameter recovery
plot_cv_recovery(assessment)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.