get_model_hash: Hashes a function string

View source: R/publication_processing.R

get_model_hashR Documentation

Hashes a function string

Description

We need some sort of stable data structure that will serve as a unique ID for a model, but will also change in the event that the model changes. This way, models can be "versioned" across time, which may be useful for debugging purposes down the line. This function trims whitespace and lowercases the predict_fn_populated pasted with the descriptors, which serves as a reasonable proxy for the model.

Usage

get_model_hash(predict_fn_populated, descriptors)

allometric documentation built on Nov. 8, 2023, 1:07 a.m.