sklearn.metrics.pairwise.cosine_similarity works fine in Jupyterlab but fails when run as part of a .py script

Hi , I am using RStudio IDE with python and have a few .py scripts as part of a project. One of the .py scripts runs sklearn.metrics.pairwise.cosine_similarity method using a pandas dataframe. when I run the .py script from within the Command line of RStudio IDE, I get the error - 'Segmentation fault (core dumped) '. I am able to run the same commands in the Jupyter lab though. I am guessing this is related to memory but wondering why the same methods works in Jupyterlab and not in the .py scripts.

Thanks,
Jay

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.