Skip to content

Instantly share code, notes, and snippets.

@ianterrell
Created January 23, 2020 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianterrell/ff387093c57245f017ed385202780070 to your computer and use it in GitHub Desktop.
Save ianterrell/ff387093c57245f017ed385202780070 to your computer and use it in GitHub Desktop.
// source https://jsbin.com
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>MathJax example</title>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
</script>
</head>
<body>
<div>
<p>
\(\mathcal{P}\) is the set of all products with the following subsets:
</p>
<table>
<tr>
<td>\(\mathcal{P}_{available}\)</td>
<td>is the subset of products available for sale</td>
</tr>
<tr>
<td>\(\mathcal{P}_{displayed}\)</td>
<td>
is the <b>ordered</b> subset shown on the tile view,
sorted by the display position
</td>
</tr>
<tr>
<td>\(\mathcal{P}_{up}\)</td>
<td>is the subset the user has upvoted</td>
</tr>
<tr>
<td>\(\mathcal{P}_{down}\)</td>
<td>is the subset the user has downvoted</td>
</tr>
<tr>
<td>\(\mathcal{P}_{relevant}\)</td>
<td>
is the <b>ordered</b> subset predicted to be relevant to the user,
sorted from most relevant to least relevant
</td>
</tr>
<tr>
<td>\(\mathcal{P}_{removed}\)</td>
<td>
is the subset the user has neither upvoted nor downvoted but has
been removed from the display in the course of updates
</td>
</tr>
<tr>
<td>\(\mathcal{P}_{promoted}\)</td>
<td>is the subset being promoted by the company</td>
</tr>
</table>
<p>
The value \(p_\alpha\) denotes the focused item.
</p>
<p>
The function
\(f(p_\alpha, \mathcal{P}_{up}, \mathcal{P}_{down}) \rightarrow \mathcal{P}_{relevant}\)
takes the focused product, upvoted products, and downvoted products, and
returns a set of relevant products ordered by predicted relevance.
</p>
</div>
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>MathJax example</title>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"><\/script>
<script id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
<\/script>
</head>
<body>
<div>
<p>
\(\mathcal{P}\) is the set of all products with the following subsets:
</p>
<table>
<tr>
<td>\(\mathcal{P}_{available}\)</td>
<td>is the subset of products available for sale</td>
</tr>
<tr>
<td>\(\mathcal{P}_{displayed}\)</td>
<td>
is the <b>ordered</b> subset shown on the tile view,
sorted by the display position
</td>
</tr>
<tr>
<td>\(\mathcal{P}_{up}\)</td>
<td>is the subset the user has upvoted</td>
</tr>
<tr>
<td>\(\mathcal{P}_{down}\)</td>
<td>is the subset the user has downvoted</td>
</tr>
<tr>
<td>\(\mathcal{P}_{relevant}\)</td>
<td>
is the <b>ordered</b> subset predicted to be relevant to the user,
sorted from most relevant to least relevant
</td>
</tr>
<tr>
<td>\(\mathcal{P}_{removed}\)</td>
<td>
is the subset the user has neither upvoted nor downvoted but has
been removed from the display in the course of updates
</td>
</tr>
<tr>
<td>\(\mathcal{P}_{promoted}\)</td>
<td>is the subset being promoted by the company</td>
</tr>
</table>
<p>
The value \(p_\alpha\) denotes the focused item.
</p>
<p>
The function
\(f(p_\alpha, \mathcal{P}_{up}, \mathcal{P}_{down}) \rightarrow \mathcal{P}_{relevant}\)
takes the focused product, upvoted products, and downvoted products, and
returns a set of relevant products ordered by predicted relevance.
</p>
</div>
</body>
</html>
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment