You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parameter[float, int, Decimal, Fraction] or even something like numeric a => Parameter[a] would be extremely helpful for validating model constructions.
The text was updated successfully, but these errors were encountered:
A = TypeVar('A', a, b)
B = Sequence[A]
class BanditParameter(Parameter[B]):
def __init__(self, name: str,
subparameters: Sequence[Parameter[A]], # should be isomorphic to B, ignoring constraints on Parameter[A] domains
domain: Sequence[B]
):
...
Effectively to enforce the membership of the elements in the Bandit domain in their respective Parameter[A] domains. The type signature above doesn't nail it exactly, but that's the motivation :)
Also for determining which encodings to use for parameters automatically in constructing models that support different types of parameters e.g. model A can handle categorical inputs natively, model B requires a 1-hot encoding.
Parameter[float, int, Decimal, Fraction]
or even something likenumeric a => Parameter[a]
would be extremely helpful for validating model constructions.The text was updated successfully, but these errors were encountered: