add typing in optuna_transformers #69
Comments
@twolffpiggott what do you think? Can we remove this check since we use typing? Or change the check to check for Number? HPOflow/hpoflow/optuna_transformers.py Line 126 in e2b0943
|
@twolffpiggott I closed the merge request and opened the inline questions here again. |
Am I right to interpret your meaning as for the untyped I left it untyped because I was not sure if there is a single Transformers base model type. Looking at this Transformers design document, it might be reasonable to put |
The type hints aren't restrictive and will not prevent people from using the method incorrectly. We could use something like mypy though I'm not sure if this will cover all dynamic use cases. Custom types like |
Oops yes! |
done |
@twolffpiggott can you please tell me the type of this?
HPOflow/hpoflow/optuna_transformers.py
Line 47 in e2b0943
The text was updated successfully, but these errors were encountered: