Isolate primitives from their hyperparameters dictionary #94
Labels
internal improvement
This introduces no noticeable changes in the behavior but improves code quality and performance
Milestone
The current implementation does not isolate the MLBlock hyperparameters dictionary from the underlying primitive, allowing this to modify its content and leading to unexpected behaviors and bugs.
This isolation should be enforced by using deepcopy instead of a simple copy when returning the hyperparameters in the
get_hyperparameters
method, and by always accessing the hyperparameters through this method instead of directly when passing them to the underlying primitive.The text was updated successfully, but these errors were encountered: