Skip to content

Conversation

@jamesowers-roo
Copy link
Contributor

@jamesowers-roo jamesowers-roo commented May 11, 2023

Previous implementation was 4 functions deep. This implementation breaks the process into steps: make d, use d to make phi. It should be faster because we're taking advantage of numpy's vectorized operations.

Previous implementation was 4 functions deep. This implementation breaks the process into steps: make d, use d to make phi.
@jamesowers-roo
Copy link
Contributor Author

Are there any ways you would like this to be improved or changed?

@blucena
Copy link
Contributor

blucena commented Oct 6, 2023

Hey @jamesowers-roo - sorry I didn't see this until now. (I was away at a conference on May 11 so it must have gotten lost for me). Let me look it over.

@blucena
Copy link
Contributor

blucena commented Oct 6, 2023

Are/were you able to test this change? I am getting errors with the non_negative function call. Where is this function defined? There are a few tests in the test folder, so let's make sure it passes those tests.

@jamesowers-cohere
Copy link

Ah, will do. Sorry I've only just seen this too (and have changed company since 🤣). I'll have a look at this when I find a moment, but it should be fairly straightforward (and for a decent speed up). I was doing this such that I could write something similar in a deep learning framework.

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

Successfully merging this pull request may close these issues.

3 participants