Typeclasses doesn't exist in Python. I wanted to build a typesafe "load/save behavior" for my complex tree-like training context (model/optimizer/config/tokenizer/...). Using OO inheritance & type abstraction, I ended in that: https://github.com/mandubian/codenets/blob/master/codenets/recordable.py#L15-L29 … 1/3
-
-
and I'm retrofitting my Scala XP in Python... not sure it means ;)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.