https://flyte.org logo
#announcements
Title
# announcements
m

Muhammad Daniyal

01/23/2022, 11:10 AM
Hello All. Hope you are doing well. I am a software developer (precisely python developer) and new to the domain of ML. During the journey, i encountered an error while applying flyte for workflow. i am working with spacy and at first it was just one file without any self defined functions and just calling 3rd party APIs. so i somewhat changed one sequential code to function to create tasks to get better understanding of flyte. well, in one function (task) i am returning a list of tuple. like traindata = [...('some text here',{'key': (1,3,'abc')})...] and wrote return type as typing.List[tuple]. but it is giving me an exception that generic types cannot be there. what should i do in this condition
👋 1
k

Ketan (kumare3)

01/23/2022, 4:37 PM
To understand the problem - either the exact error or a snippet of the erroring function definition will help. If you are ok to paste it here would be awesome
m

Muhammad Daniyal

01/24/2022, 9:42 AM
this is the function i want to be the task
and the exception i am getting
o

Open AIMP

02/02/2022, 5:01 AM
HI @Ketan (kumare3) can you offer some expert insights based upon the above code samples (@komal azram)
k

Ketan (kumare3)

02/02/2022, 5:08 AM
hello @Open AIMP - sorry i missed the message.
cc @Yee / So tuples are restricted type currently. Flyte does not allow tuples to be passed. This is because we use named tuples to name the output vars. For example
typing.NamedTuple("op", [("x": int)])
Would it possible to instead convert the List of tuples to either 1. pandas.DataFrame OR Create a new dataclass - e.g DataClass and use as 2. List[DataClass]
On a side note @Open AIMP I see you are educating folks on using MLOps. This fantastic. May i send you a DM. We are infact working on a new overlay on top of Flytekit, that will simplify flytekit usage for beginners?
cc @Niels Bantilan
o

Open AIMP

03/27/2022, 4:15 AM
Hi @Ketan (kumare3) @Niels Bantilan...I'm excited to learn about the new overlay...how should we engage?
k

Ketan (kumare3)

03/27/2022, 4:16 AM
@Open AIMP can we understand the usecases
We want to understand what is it that you guys want and how are you approaching it
o

Open AIMP

03/27/2022, 4:18 AM
Insurance Fraud detection, Insurance Contract Management, Insurance Product Recommendation, Insurance Forecasting, etc. are some of the use-cases.
k

Ketan (kumare3)

03/27/2022, 4:19 AM
Let's schedule some time next week or rather week after
o

Open AIMP

03/27/2022, 4:19 AM
Super. Are you in EST?
k

Ketan (kumare3)

03/27/2022, 4:30 AM
Pst
o

Open AIMP

03/27/2022, 5:30 AM
27 Views