-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError when sorting data in the Variable Explorer #22275
Comments
Hi @Pavun-KumarCH thank you for the feedback! Seems like inside your data a Any further info to help us better understand this is greatly appreciated. Let us know! |
It was Fixed! Thank You
…On Wed, Jul 24, 2024 at 12:50 AM Daniel Althviz Moré < ***@***.***> wrote:
Hi @Pavun-KumarCH <https://github.com/Pavun-KumarCH> thank you for the
feedback! Seems like inside your data a 2 is being represented with a '₂'
which generates a ValueError over the logic used to parse variables. Did
the error appear when trying to see or maybe edit some variable generated
by your code? Could it be possible for you to share a self-contained
example that could help us reproduce this locally (the code you posted over
the OP requires some data in a specific directory structure)?
Any further info to help us better understand this is greatly appreciated.
Let us know!
—
Reply to this email directly, view it on GitHub
<#22275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BFIYH7QADAPBQQNBUWIIBNLZN2UGXAVCNFSM6AAAAABLGZAR7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBWGEYDSNBZGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@ccordoba12 should we close this or maybe is worthy to further investigate/add a way to handle this kind of error? |
I think we should catch the error and handle it appropriately, although I'm not sure how. |
Since still no handling has been implement for this kind of error (variables could end up with data that can trigger an error when trying to construct a graphical representation of them) I'm reopening this. Please don't close it @Pavun-KumarCH |
Description
What steps will reproduce the problem?
glove_dir = '/Artifical Intelligence/RNN/Datasets_RNN/glove.6B'
embedding_index = {}
f = open(os.path.join(glove_dir, 'glove.6B.100d.txt'), encoding = 'utf8')
for line in f:
values = line.split()
word = values[0]
coefs = np.asarray(values[1:], dtype = 'float32')
embedding_index[word] = coefs
f.close()
Traceback
Versions
Dependencies
The text was updated successfully, but these errors were encountered: