import_emulator_from_json: Import JSON Emulator Data

import_emulator_from_jsonR Documentation

Import JSON Emulator Data

Description

Given a file containing emulator details, reconstruct a collection of emulators.

Usage

import_emulator_from_json(filename = NULL, details = NULL)

Arguments

filename

Either a file location of a saved JSON file, or the string corresponding to it

details

Mainly internal; any already reconstructed emulators and their input data

Details

For data generated from export_emulator_to_json (for example), emulators are recreated using the specifications therein. For each emulator, a call is made to emulator_from_data with specified_priors stipulated (so no retraining is performed, making the reconstruction fast).

The structure of the JSON file used to import is relatively generic, and can be created outside of this package. For examples of the structure, see the code given in the companion export function.

Value

The emulator objects, as a list.

See Also

export_emulator_to_json


Tandethsquire/hmer documentation built on Oct. 25, 2024, 11:09 a.m.