https://flyte.org logo
#ask-the-community
Title
# ask-the-community
k

Kamakshi Muthukrishnan

11/16/2022, 7:22 AM
what needs to be done here ?
s

Samhita Alla

11/16/2022, 8:37 AM
calc_accuracy(split_data_vals.test_labels,predicted_vals_output)
needs to be
calc_accuracy(y_test=split_data_vals.test_labels, predicted_vals_list=predicted_vals_output)
k

Kamakshi Muthukrishnan

11/16/2022, 8:49 AM
I was getting Import error if I give those as is.... 022-11-16 084615,684 INFO worker.py:1525 -- Started a local Ray instance. View the dashboard at http://127.0.0.1:8265 <class 'sklearn.utils.Bunch'> 2022-11-16 084616,914 WARNING init.py:192 -- DeprecationWarning:
ray.worker.global_worker
is a private attribute and access will be removed in a future Ray version. UserWarning: Distributing <class 'pandas.core.frame.DataFrame'> object. This may take some time. <class 'modin.pandas.dataframe.DataFrame'> UserWarning: Distributing <class 'pandas.core.series.Series'> object. This may take some time. <class 'modin.pandas.dataframe.DataFrame'> 2022-11-16 084617,404 WARNING worker.py:1839 -- Traceback (most recent call last): File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/ray/_private/import_thread.py", line 193, in fetch_and_execute_function_to_run function({"worker": self.worker}) File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/modin/core/execution/ray/common/utils.py", line 88, in _import_pandas import pandas # noqa F401 File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pandas/__init__.py", line 50, in <module> from pandas.core.api import ( File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pandas/core/api.py", line 48, in <module> from pandas.core.groupby import ( File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pandas/core/groupby/__init__.py", line 1, in <module> from pandas.core.groupby.generic import ( File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pandas/core/groupby/generic.py", line 73, in <module> from pandas.core.frame import DataFrame ImportError: cannot import name 'DataFrame' from 'pandas.core.frame' (/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/pandas/core/frame.py)
Is there any packages I needed to install ? i had installed modin[ray]
s

Samhita Alla

11/16/2022, 8:58 AM
Seems like the installation hasn’t happened correctly.
Can you try re-installing it?
k

Kamakshi Muthukrishnan

11/16/2022, 9:04 AM
I have pip installed flytekit==1.2.3 .. what is the correct version to install flytekitplugins.modin # noqa: F401
s

Samhita Alla

11/16/2022, 9:04 AM
Should be the same.