Skip to contents

Find a dist_weight and ent_weight consistent with a given obs_prop and de_ratio

Usage

refactor_hyperparams(de_ratio, obs_prop, digits = 5)

Arguments

de_ratio

numeric Desired ratio, dist_weight/ent_weight

obs_prop

numeric Desired observation_proportion when obs_weight = 1, e.g. obs_prop = 1 / (1 + dist_weight + ent_weight)

digits

integer Desired number of significant digits to retain in result

Value

A list:

  • dist_weight dist_weight parameter that satisfies desired de_ratio and obs_prop

  • ent_weight ent_weight parameter that satisfies desired de_ratio and obs_prop