|
25 | 25 | },
|
26 | 26 | "source": [
|
27 | 27 | "# Content-based Recommendation Using ArangoSearch TFIDF and AQL\n",
|
28 |
| - "This is an implementation of content-based recommendation using ArangoSearch and AQL. ArangoSearch TFIDF is used to compute similarity between movies. An ArangoSearch view of Movie (MovieView) is created containing movie title, tagline, and overview from the Movie collection in the Movie Knowledge Graph. The simularity between user highly rated movies and other movies is computed using ArangoSearch. An AQL query then finds the most highly rated movies by the specific user and then uses the movie similarity to compute the set of movies most like the highest rated movies for the specific user" |
| 28 | + "This is an implementation of content-based recommendation using ArangoSearch and AQL. ArangoSearch TFIDF is used to compute similarity between movies. An ArangoSearch view of Movie (MovieView) is created containing movie title, tagline, and overview from the Movie collection in the Movie Knowledge Graph. The simularity between user highly rated movies and other movies is computed using ArangoSearch. An AQL query then finds the most highly rated movies by the specific user and then uses the movie similarity to compute the set of movies most like the highest rated movies for the specific user\n", |
| 29 | + "\n", |
| 30 | + "[Understanding TF-ID: A Simple Introduction - MonkeyLearn Blog](https://monkeylearn.com/blog/what-is-tf-idf/)" |
29 | 31 | ]
|
30 | 32 | },
|
31 | 33 | {
|
|
34 | 36 | "id": "lUHaQbYk9xEr"
|
35 | 37 | },
|
36 | 38 | "source": [
|
37 |
| - "#Setup Interactive Demo Environment" |
| 39 | + "# Setup Interactive Demo Environment" |
38 | 40 | ]
|
39 | 41 | },
|
40 | 42 | {
|
|
85 | 87 | "id": "pE28K_g8ridl"
|
86 | 88 | },
|
87 | 89 | "source": [
|
88 |
| - "#Configure Connection to ArangoDB Database\n", |
| 90 | + "# Configure Connection to ArangoDB Database\n", |
89 | 91 | "You will be setting an ArangoDB temporary database and restoring the movie recommendation demo to it. You can also set up an empty ArangoDB database instance in your own environement (Local, Cloud, or Oasis) and restore the recommendation demo to it. Or you can configure the connection to an existing arangodb instance containing the movie recommendation demo."
|
90 | 92 | ]
|
91 | 93 | },
|
|
95 | 97 | "id": "qcyMLeOV-Cui"
|
96 | 98 | },
|
97 | 99 | "source": [
|
98 |
| - "##Setup Temporary Database for Interactive Demo Environment" |
| 100 | + "## Setup Temporary Database for Interactive Demo Environment" |
99 | 101 | ]
|
100 | 102 | },
|
101 | 103 | {
|
|
147 | 149 | "id": "OaC4QhCUhAAe"
|
148 | 150 | },
|
149 | 151 | "source": [
|
150 |
| - "#Restore the Movie Knowledge Graph" |
| 152 | + "# Restore the Movie Knowledge Graph" |
151 | 153 | ]
|
152 | 154 | },
|
153 | 155 | {
|
|
169 | 171 | "id": "-zoAB7ht-UQg"
|
170 | 172 | },
|
171 | 173 | "source": [
|
172 |
| - "#Run ArangoSearch TFIDF Content-based Recommendation Query" |
| 174 | + "# Run ArangoSearch TFIDF Content-based Recommendation Query" |
173 | 175 | ]
|
174 | 176 | },
|
175 | 177 | {
|
|
210 | 212 | " RETURN {movie : DOCUMENT(recommendedMovieId) , score : aggregateScore}\n",
|
211 | 213 | "\"\"\"\n",
|
212 | 214 | "\n",
|
213 |
| - "bind = {'userId':'User/1', 'similarUserLimit': 10, 'movieRecommendationLimit':3}\n", |
| 215 | + "bind = {'userId':'User/1', 'movieRecommendationLimit':3, 'topRatedMovieLimit': 10}\n", |
214 | 216 | "movieData = db.AQLQuery(movieRecommendationQuery, rawResults=True, bindVars=bind)\n",
|
215 | 217 | "movieDataFrame = pd.DataFrame.from_dict(movieData)\n",
|
216 | 218 | "movieDataFrame.head(10)"
|
|
0 commit comments