Skip to content
Draft
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions algorithm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"# Under the hood the library uses findspark to initialise\n",
"# Spark's environment. pyspark imports will be available \n",
"# after initialisation\n",
"spark = get_session(type='regular', app_name=\"ImageRec-DEV Training\")\n",
"spark = get_session(type='regular', app_name=\"ImageRec-DEV Training\", extra_settings={'spark.driver.memory': '2048M'})\n",
"import pyspark\n",
"import pyspark.sql"
]
Expand Down Expand Up @@ -301,7 +301,6 @@
" LATERAL VIEW explode(labels) t AS label_lang,label_val\n",
" LATERAL VIEW OUTER explode(claims) c AS claim\n",
" WHERE typ='item'\n",
" AND t.label_lang='\"\"\"+label_lang+\"\"\"'\n",
" AND snapshot='\"\"\"+snapshot+\"\"\"'\n",
" AND claim.mainSnak.property in ('P18','P31','P373')\n",
" GROUP BY id,label_val\n",
Expand Down Expand Up @@ -597,10 +596,10 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.1"
"version": "3.7.3"
},
"toc-showtags": true
},
"nbformat": 4,
"nbformat_minor": 4
}
}