Skip to content
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

vectorize function #2

Open
nshervt opened this issue Oct 10, 2020 · 0 comments
Open

vectorize function #2

nshervt opened this issue Oct 10, 2020 · 0 comments

Comments

@nshervt
Copy link

nshervt commented Oct 10, 2020

Thanks for the great work!

I was wondering what exactly does

Xs, X = vectorize(list_seq, char_set)

do? It seems that it is turning the SMILES inputs to a matrix of one-hot vectors. But it also adds 4 additional lines: an empty line at the beginning and 3 lines at the end. Then it returns 0:-1 and 1: as Xs and X. What's the point in doing so?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant