-
Notifications
You must be signed in to change notification settings - Fork 161
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
LTR notebook #177
LTR notebook #177
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is the first and most basic LTR notebook, I'd actually prefer to see it as part of the search
notebooks. It feels to me like it belongs there as part of the user journey from basic search to advanced, as shown through the search
notebooks.
notebooks/learning-to-rank/sample_data/movies_index_settings.json
Outdated
Show resolved
Hide resolved
"id": {"type": "keyword"}, | ||
"title": {"type": "text", "analyzer": "english"}, | ||
"overview": {"type": "text", "analyzer": "english"}, | ||
"year": {"type": "integer"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this better as a date
field? Not sure how it's being used.
"\n", | ||
"TODO: udpate the link to elastic/elasticsearch-labs instead of my fork before merging.\n", | ||
"\n", | ||
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/afoucret/elasticsearch-labs/blob/ltr-notebook/notebooks/learning-to-rank/01-learning-to-rank.ipynb)\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to change this before merging 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it. Added lots of small suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for applying all the changes @afoucret! I added a handful of extra suggestions, but for me this looks good once the TODOs in the description are done 👍
bd47551
to
64f21a7
Compare
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"We saw above that the title and popularity fields are important ranking feature in our model. Here we can see that now all results contain the query terms in the title. Moreover, more popular movies rank higher, for example `Star Wars: Episode I - The Phantom Menace` is now in third position." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@afoucret I saw that in the version that got merged Star Wars: Episode I - The Phantom Menace
is actually not in the result list. I think it would be good to
- update the example with a movie that is actually here
- set
random.seed
to a fixed number early in the notebook so that parts that use random values always do the same for each run.
What do you think?
TODO: