Skip to content

Commit 2d8b838

Browse files
committed
Add drawio.svg
1 parent c399da0 commit 2d8b838

File tree

8 files changed

+552
-154
lines changed

8 files changed

+552
-154
lines changed

src/.vuepress/sidebar/en.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export const enSidebar = sidebar({
3030
"collapsible": true,
3131
"prefix": "concepts/",
3232
"children": [
33-
"pipeline",
3433
"data-source",
34+
"pipeline",
3535
{
3636
"text": "Recommenders",
3737
"icon": "recommend-fill",
@@ -45,8 +45,8 @@ export const enSidebar = sidebar({
4545
"external"
4646
]
4747
},
48-
"replacement",
4948
"ranking",
49+
"replacement",
5050
"evaluation"
5151
]
5252
},

src/docs/concepts/data-source.md

Lines changed: 76 additions & 96 deletions
Large diffs are not rendered by default.

src/docs/concepts/evaluation.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,4 @@ $$
6161

6262
where $\mathbb{I}(i=\hat I^{(10)}_{u,i})$ is the $i$-th item in the top 10 recommendations.
6363

64-
### Clustering Index and HNSW Index
65-
66-
The clustering index is used to speed up searching user (item) neighbors, while the HNSW index is used to accelerate recommendations from matrix factorization. The quality of an index is evaluated by the recall:
67-
68-
$$
69-
\text{recall@n}=\frac{|\text{top n by index}|}{|\text{top n by brute force}|}
70-
$$
71-
72-
::: tip
73-
74-
The recalls of indices are listed in the "System Status" section of the dashboard homepage.
75-
76-
![](../../img/evaluation-neighbor-index-recall.jpeg =400x)
77-
![](../../img/evaluation-mf-index-recall.jpeg =400x)
78-
79-
If the recall of an index is extremely low, consider turning off the index.
80-
81-
:::
82-
8364
[^1]: He, Xiangnan, et al. "Neural collaborative filtering." Proceedings of the 26th international conference on world wide web. 2017.

src/docs/concepts/pipeline.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ icon: pipeline
33
---
44
# Pipeline
55

6+
![](../../img/pipeline.drawio.svg)
7+
8+
## Default Pipeline
9+
10+
![](../../img/default.drawio.svg)
11+
612
The workflow of Gorse is depicted in the following flowchart:
713

814
```mermaid
@@ -267,20 +273,3 @@ clock_error = "5s"
267273
# Server-side cache expire time. The default value is 10s.
268274
cache_expire = "10s"
269275
```
270-
271-
### Replacement
272-
273-
In some cases, read items should be recommended to users again but with lower priorities. If `enable_replacement` is set, read items would be placed back to recommendations. The priority decay factors for positive feedbacks and read feedbacks are controlled by `positive_replacement_decay` and `read_replacement_decay`.
274-
275-
```toml
276-
[recommend.replacement]
277-
278-
# Replace historical items back to recommendations.
279-
enable_replacement = false
280-
281-
# Decay the weights of replaced items from positive feedbacks.
282-
positive_replacement_decay = 0.8
283-
284-
# Decay the weights of replaced items from read feedbacks.
285-
read_replacement_decay = 0.6
286-
```

src/docs/concepts/ranking.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,3 @@ x_i\sum^n_{j=1}v_{j,f}x_j-v_{i,f}x^2_i,&\text{if }\theta\text{ is }v_{i,f}
4747
$$
4848

4949
Hyper-parameters are optimized by random search and the configuration `recommend.collaborative` is reused.
50-
51-
[^1]: Rendle, Steffen, et al. "BPR: Bayesian personalized ranking from implicit feedback." Proceedings of the Twenty-Fifth Conference on Uncertainty in Artificial Intelligence. 2009.
52-
53-
[^2]: He, Xiangnan, et al. "Fast matrix factorization for online recommendation with implicit feedback." Proceedings of the 39th International ACM SIGIR conference on Research and Development in Information Retrieval. 2016.
54-
55-
[^3]: Rendle, Steffen. "Factorization machines." 2010 IEEE International conference on data mining. IEEE, 2010.
56-
57-
[^4]: Zhang, Shuai, et al. "Deep learning based recommender system: A survey and new perspectives." ACM Computing Surveys (CSUR) 52.1 (2019): 1-38.
58-
59-
[^5]: Bergstra, James, and Yoshua Bengio. "Random search for hyper-parameter optimization." Journal of machine learning research 13.2 (2012).
60-
61-
[^6]: Auvolat, Alex, et al. "Clustering is efficient for approximate maximum inner product search." arXiv preprint arXiv:1507.05910 (2015).
62-
63-
[^7]: Malkov, Yu A., and Dmitry A. Yashunin. "Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs." IEEE transactions on pattern analysis and machine intelligence 42.4 (2018): 824-836.
64-
65-
[^8]: Hu, Yifan, Yehuda Koren, and Chris Volinsky. "Collaborative filtering for implicit feedback datasets." 2008 Eighth IEEE international conference on data mining. Ieee, 2008.
66-
67-
[^9]: Auvolat, Alex, et al. "Clustering is efficient for approximate maximum inner product search." arXiv preprint arXiv:1507.05910 (2015).
68-
69-
[^10]: Malkov, Yu A., and Dmitry A. Yashunin. "Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs." IEEE transactions on pattern analysis and machine intelligence 42.4 (2018): 824-836.

src/docs/concepts/replacement.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,19 @@
22
icon: download
33
---
44
# Replacement
5+
6+
7+
In some cases, read items should be recommended to users again but with lower priorities. If `enable_replacement` is set, read items would be placed back to recommendations. The priority decay factors for positive feedbacks and read feedbacks are controlled by `positive_replacement_decay` and `read_replacement_decay`.
8+
9+
```toml
10+
[recommend.replacement]
11+
12+
# Replace historical items back to recommendations.
13+
enable_replacement = false
14+
15+
# Decay the weights of replaced items from positive feedbacks.
16+
positive_replacement_decay = 0.8
17+
18+
# Decay the weights of replaced items from read feedbacks.
19+
read_replacement_decay = 0.6
20+
```

src/img/default.drawio.svg

Lines changed: 70 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)