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

Terrier weighting models expressed in Python #215

Merged
merged 28 commits into from
Aug 10, 2021
Merged

Conversation

cmacdonald
Copy link
Contributor

No description provided.

@cmacdonald
Copy link
Contributor Author

(unit tests pass once terrier-python-helper is installed.)

Copy link
Collaborator

@seanmacavaney seanmacavaney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really cool!

Have you tested the performance difference between a pure java wmodel vs one of these? I'd expect there to be some impact, as there's overhead in jnius when switching between python and java. If it's noticeable, it might be worth mentioning this in the documentation.

Besides that, looks good to me.

#TODO consider the context state?

@staticmethod
def from_dataset(dataset : Union[str,Dataset],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this belongs in a different PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I started from a from_dataset branch, but I think this bit is already merged.

@cmacdonald
Copy link
Contributor Author

Efficiency timings on Vaswani for the record:
Baseline in 2.2120 seconds
Lambda in 81.0745 seconds

@cmacdonald cmacdonald merged commit 6374c8b into master Aug 10, 2021
@cmacdonald cmacdonald deleted the 208python_wmodel branch August 10, 2021 10:43
@cmacdonald cmacdonald added this to the 0.7 milestone Sep 17, 2021
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.

2 participants