News for hackers. Stuff that matters.
Re:Flyte: A Cloud Native Machine Learning and Data Processin... by roberto on Tuesday January 07, 2020 @01:48PM (#21983188)
Any plans to support Python type annotations, instead of using the @inputs and @outputs decorators?
Re:Flyte: A Cloud Native Machine Learning and Data Processin... by matthewphsmith on Tuesday January 07, 2020 @02:14PM (#21983515)
That is something to which the SDK was designed to be extended--in fact, the SDK was designed specifically to be extended to different programming models besides the rudimentary one we provide out-of-box. However, we have not had the time to take on the implementation ourselves as the existing one serves our purposes at Lyft well and we are but a small team. So we do hope that someone in the community with a knack for syntax can help improve things!
Re:Flyte: A Cloud Native Machine Learning and Data Processin... by crorella on Tuesday January 07, 2020 @06:07PM (#21986232)
You mean DataClasses?
Re:Flyte: A Cloud Native Machine Learning and Data Processin... by roberto on Tuesday January 07, 2020 @06:52PM (#21986607)
No, I mean type annotations in the functions defining the tasks. If you look at their first example, they define a function called `get_traintest_splitdatabase`, and the input and outputs are annotated using two decorators.
Re:Flyte: A Cloud Native Machine Learning and Data Processin... by kumare3 on Tuesday January 07, 2020 @11:02PM (#21988182)
Roberto, this is absolutely one of our goals. When we started, it was with python2.7 still around. We would love contributions, ofcourse we will work with you and adapt it
Re:Flyte: A Cloud Native Machine Learning and Data Processin... by tedmiston on Tuesday January 07, 2020 @09:06PM (#21987556)
typing — Support for type hints [1]. They are used by tools like mypy, not at runtime (by CPython at least), but still very useful.

[1]: https://docs.python.org/3/library/typing.html