fit_priors.py¶
- mlcg_tk.scripts.fit_priors.compute_statistics(dataset_name, names, tag, save_dir, stride, batch_size, prior_tag, prior_builders, embedding_map, statistics_tag=None, device='cpu', save_figs=True, save_sample_statistics=False, weights_template_fn=None, mol_num_batches=1)[source]¶
Computes structural features and accumulates statistics on dataset samples
- Parameters:
dataset_name (
str) – Name given to specific datasetnames (
List[str]) – List of sample namestag (
str) – Label given to all output files produced from datasetsave_dir (
str) – Path to directory from which input will be loaded and to which output will be savedstride (
int) – Integer by which to stride framesbatch_size (
int) – Number of frames to take per batchprior_tag (
str) – String identifying the specific combination of prior termsprior_builders (
List[PriorBuilder]) – List of PriorBuilder objects and their corresponding parametersembedding_map (
CGEmbeddingMap) – Mapping objectstatistics_tag (
Optional[str]) – String differentiating parameters used for statistics computationdevice (
str) – Device on which to run delta force calculationssave_sample_statistics (
bool) – If true, will save individual list of prior builders with accumulated statistics of one moleculesave_figs (
bool) – Whether to plot histograms of computed statisticsweights_template_fn (
Optional[str]) – Template file location of weights to use for accumulating statisticsmol_num_batches (
Optional[int]) – If greater than 1, will save each molecule data into the specified number of batches that will be treated as different samples
- mlcg_tk.scripts.fit_priors.fit_priors(save_dir, prior_tag, embedding_map, temperature)[source]¶
Fits potential energy estimates to computed statistics
- Parameters:
save_dir (
str) – Path to directory from which input will be loaded and to which output will be savedprior_tag (
str) – String identifying the specific combination of prior termsembedding_map (
CGEmbeddingMap) – Mapping objecttemperature (
float) – Temperature from which beta value will be computed