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

Negative Code Embeddings #17

Closed
Ankit267 opened this issue Feb 20, 2019 · 2 comments
Closed

Negative Code Embeddings #17

Ankit267 opened this issue Feb 20, 2019 · 2 comments

Comments

@Ankit267
Copy link

Hello Ed,

In the Med2Vec code , you have mentioned the weights as (-0.01,0.01) ,which is generating negative code embeddings.
params['W_emb'] = np.random.uniform(-0.01, 0.01,

however in the paper you have mentioned that "all medical codes C to non-negative real-valued vectors of dimension m"

Can you please help me in understanding that?

Thanks,
Ankit

@mp2893
Copy link
Owner

mp2893 commented Feb 22, 2019

Hi Ankit,

Medical codes are derived by ReLU(W_emb x_t + b_emb), which makes the codes non-negative.
(That is the equation (1) in the paper).

Best,
Ed

@Ankit267
Copy link
Author

Thanks Ed!!

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

2 participants