Konstantin Sofeikov
01/06/2025, 1:06 PM@config.when(stage="training", imputation="median") # type: ignore[misc]
def imputers__training__median(
What do I actually do about those dunders? It seems to be properly included into graph like this, but do we really need to enumerate all those values in the function name?
Thanks!Thierry Jean
01/06/2025, 1:53 PM@config.when to define two imputers nodes, you need to have functions named imputers__SOMETHING() and imputers_SOMETHING_ELSE().
What you put after the dunder is up to you (Hamilton doesn't read it).
You could have imputers__default(), imputers__v1(), imputers__training() and organize it how you preferKonstantin Sofeikov
01/06/2025, 1:57 PMKonstantin Sofeikov
01/06/2025, 1:57 PMThierry Jean
01/06/2025, 1:57 PMKonstantin Sofeikov
01/06/2025, 1:58 PMElijah Ben Izzy
01/06/2025, 5:03 PM__ and remove that + everything after that, but I think it’s fair to assuem that multiple sets of __ is closer to undefined behavior