danielenricocahall / elephas

Distributed Deep learning with Keras & Spark
MIT License
17 stars 5 forks source link

TypeError: 'type' object is not subscriptable while importing elphas SparkMLlibModel #36

Open raditya1117 opened 5 months ago

raditya1117 commented 5 months ago

Describe the bug While importing the SparkMLlibModel using "from elephas.spark_model import SparkMLlibModel", I am getting the error "TypeError: 'type' object is not subscriptable" in multiple functions in "elephas/utils/rdd_utils.py" weherever subscript is used while defining types in function definition. elephas error

To Reproduce To reproduce, we just need to execute the import statement "from elephas.spark_model import SparkMLlibModel" Expected behavior The import statements shouldn't run into any error. Desktop (please complete the following information):

Additional context Add any other context about the problem here.

danielenricocahall commented 3 months ago

🤔 Interesting - I'll need to see if the RDD API changed since I believe we've used those typehints for a while.