狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线

IEMS 5730代做、c++,Java語言編程代寫

時間:2024-03-12  來源:  作者: 我要糾錯



IEMS 5730 Spring 2024 Homework 2
Release date: Feb 23, 2024
Due date: Mar 11, 2024 (Monday) 11:59:00 pm
We will discuss the solution soon after the deadline. No late homework will be accepted!
Every Student MUST include the following statement, together with his/her signature in the
submitted homework.
I declare that the assignment submitted on Elearning system is original
except for source material explicitly acknowledged, and that the same or
related material has not been previously submitted for another course. I
also acknowledge that I am aware of University policy and regulations on
honesty in academic work, and of the disciplinary guidelines and
procedures applicable to breaches of such policy and regulations, as
contained in the website
http://www.cuhk.edu.hk/policy/academichonesty/.
Signed (Student_________________________) Date:______________________________
Name_________________________________ SID_______________________________
Submission notice:
● Submit your homework via the elearning system.
● All students are required to submit this assignment.
General homework policies:
A student may discuss the problems with others. However, the work a student turns in must
be created COMPLETELY by oneself ALONE. A student may not share ANY written work or
pictures, nor may one copy answers from any source other than one’s own brain.
Each student MUST LIST on the homework paper the name of every person he/she has
discussed or worked with. If the answer includes content from any other source, the
student MUST STATE THE SOURCE. Failure to do so is cheating and will result in
sanctions. Copying answers from someone else is cheating even if one lists their name(s) on
the homework.
If there is information you need to solve a problem, but the information is not stated in the
problem, try to find the data somewhere. If you cannot find it, state what data you need,
make a reasonable estimate of its value, and justify any assumptions you make. You will be
graded not only on whether your answer is correct, but also on whether you have done an
intelligent analysis.
Submit your output, explanation, and your commands/ scripts in one SINGLE pdf file.
Q1 [20 marks + 5 Bonus marks]: Basic Operations of Pig
You are required to perform some simple analysis using Pig on the n-grams dataset of
Google books. An ‘n-gram’ is a phrase with n words. The dataset lists all n-grams present in
books from books.google.com along with some statistics.
In this question, you only use the Google books bigram (1-grams). Please go to Reference
[1] and [2] to download the two datasets. Each line in these two files has the following format
(TAB separated):
bigram year match_count volume_count
An example for 1-grams would be:
circumvallate 1978 335 91
circumvallate 1979 261 95
This means that in 1978(1979), the word "circumvallate" occurred 335(261) times overall,
from 91(95) distinct books.
(a) [Bonus 5 marks] Install Pig in your Hadoop cluster. You can reuse your Hadoop
cluster in IEMS 5730 HW#0 and refer to the following link to install Pig 0.17.0 over
the master node of your Hadoop cluster :
http://pig.apache.org/docs/r0.17.0/start.html#Pig+Setup
Submit the screenshot(s) of your installation process.
If you choose not to do the bonus question in (a), you can use any well-installed Hadoop
cluster, e.g., the IE DIC, or the Hadoop cluster provided by the Google Cloud/AWS [5, 6, 7]
to complete the following parts of the question:
(b) [5 marks] Upload these two files to HDFS and join them into one table.
(c) [5 marks] For each unique bigram, compute its average number of occurrences per
year. In the above example, the result is:
circumvallate (335 + 261) / 2 = 298
Notes: The denominator is the number of years in which that word has appeared.
Assume the data set contains all the 1-grams in the last 100 years, and the above
records are the only records for the word ‘circumvallate’. Then the average value is:
(335 + 261) / 2 = 298,
instead of
(335 + 261) / 100 = 5.96
(d) [10 marks] Output the 20 bigrams with the highest average number of occurrences
per year along with their corresponding average values sorted in descending order. If
multiple bigrams have the same average value, write down anyone you like (that is,
break ties as you wish).
You need to write a Pig script to perform this task and save the output into HDFS.
Hints:
● This problem is very similar to the word counting example shown in the lecture notes
of Pig. You can use the code there and just make some minor changes to perform
this task.
Q2 [20 marks + 5 bonus marks]: Basic Operations of Hive
In this question, you are asked to repeat Q1 using Hive and then compare the performance
between Hive and Pig.
(a) [Bonus 5 marks] Install Hive on top of your own Hadoop cluster. You can reuse your
Hadoop cluster in IEMS 5730 HW#0 and refer to the following link to install Hive
2.3.8 over the master node of your Hadoop cluster.
https://cwiki.apache.org/confluence/display/Hive/GettingStarted
Submit the screenshot(s) of your installation process.
If you choose not to do the bonus question in (a), you can use any well-installed Hadoop
cluster, e.g., the IE DIC, or the Hadoop cluster provided by the Google Cloud/AWS [5, 6, 7].
(b) [20 marks] Write a Hive script to perform exactly the same task as that of Q1 with
the same datasets stored in the HDFS. Rerun the Pig script in this cluster and
compare the performance between Pig and Hive in terms of overall run-time and
explain your observation.
Hints:
● Hive will store its tables on HDFS and those locations needs to be bootstrapped:
$ hdfs dfs -mkdir /tmp
$ hdfs dfs -mkdir /user/hive/warehouse
$ hdfs dfs -chmod g+w /tmp
$ hdfs dfs -chmod g+w /user/hive/warehouse
● While working with the interactive shell (or otherwise), you should first test on a small
subset of the data instead of the whole data set. Once your Hive commands/ scripts
work as desired, you can then run them up on the complete data set.
Q3 [30 marks + 10 Bonus marks]: Similar Users Detection in
the MovieLens Dataset using Pig
Similar user detection has drawn lots of attention in the machine learning field which is
aimed at grouping users with similar interests, behaviors, actions, or general patterns. In this
homework, you will implement a similar-users-detection algorithm for the online movie rating
system. Basically, users who rate similar scores for the same movies may have common
tastes or interests and be grouped as similar users.
To detect similar users, we need to calculate the similarity between each user pair. In this
homework, the similarity between a given pair of users (e.g. A and B) is measured as the
total number of movies both A and B have watched divided by the total number of
movies watched by either A or B. The following is the formal definition of similarity: Let
M(A) be the set of all the movies user A has watched. Then the similarity between user A
and user B is defined as:
………..(**) 𝑆𝑖𝑚𝑖𝑙𝑎𝑟𝑖𝑡𝑦(𝐴, 𝐵) =
|𝑀(𝐴)∩𝑀(𝐵)|
|𝑀(𝐴)∪𝑀(𝐵)|
where |S| means the cardinality of set S.
(Note: if |𝑀(𝐴)∪𝑀(𝐵)| = 0, we set the similarity to be 0.)
The following figure illustrates the idea:
Two datasets [3][4] with different sizes are provided by MovieLens. Each user is represented
by its unique userID and each movie is represented by its unique movieID. The format of the
data set is as follows:
<userID>, <movieID>
Write a program in Pig to detect the TOP K similar users for each user. You can use the
cluster you built for Q1 and Q2 or you can use the IE DIC or one provided by the Google
Cloud/AWS [5, 6, 7].
(a) [10 marks] For each pair of users in the dataset [3] and [4], output the number of
movies they have both watched.
For your homework submission, you need to submit i) the Pig script and ii) the
list of the 10 pairs of users having the largest number of movies watched by
both users in the pair within the corresponding dataset. The format of your
answer should be as follows:
請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:COMP 315代寫、Java程序語言代做
  • 下一篇:代做CSCI 2525、c/c++,Java程序語言代寫
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • NBA直播 短信驗證碼平臺 幣安官網下載 歐冠直播 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线
  • <dl id="akume"></dl>
  • <noscript id="akume"><object id="akume"></object></noscript>
  • <nav id="akume"><dl id="akume"></dl></nav>
  • <rt id="akume"></rt>
    <dl id="akume"><acronym id="akume"></acronym></dl><dl id="akume"><xmp id="akume"></xmp></dl>
    成年人午夜免费视频| 99999精品| 精品少妇在线视频| 黄瓜视频免费观看在线观看www | 9色视频在线观看| 国产精品自在自线| 亚洲欧美天堂在线| 亚洲图片 自拍偷拍| 欧美视频国产视频| 欧美激情第一区| 99久久99精品| 国内少妇毛片视频| 黄色激情在线视频| 99爱视频在线| 国产情侣av自拍| 无码日韩人妻精品久久蜜桃| 欧美女人性生活视频| 18禁男女爽爽爽午夜网站免费| 黄色片久久久久| 大香煮伊手机一区| 成年人在线观看视频免费| 黄色三级视频片| 最新视频 - x88av| 欧美一区二区中文字幕| 日韩欧美精品在线观看视频| 亚洲少妇第一页| 四虎免费在线观看视频| 国产www免费| 爱情岛论坛vip永久入口| 亚洲一区二区偷拍| 一级特黄妇女高潮| 日本天堂免费a| 日韩av综合在线观看| 日日躁夜夜躁aaaabbbb| 久久久国产精华液999999 | 中文字幕黄色大片| www.av中文字幕| 无码少妇一区二区三区芒果| 亚洲第一天堂久久| 特色特色大片在线| 日本三区在线观看| 隔壁人妻偷人bd中字| 黄色永久免费网站| 免费不卡av在线| 性欧美18一19内谢| 国产xxxx振车| 一级黄色片在线免费观看| 国产97色在线 | 日韩| 在线观看成人免费| 亚洲成人天堂网| 激情五月开心婷婷| 少妇人妻在线视频| 精品无码国产一区二区三区av| www.com黄色片| 久久久久久久久久福利| 91丨porny丨探花| 超碰在线免费观看97| 久久成年人网站| 久久久久久三级| 久久久免费视频网站| 成人在线播放网址| 轻点好疼好大好爽视频| 超碰91在线播放| 久久精品国产露脸对白| 国模私拍视频在线观看| 亚洲第一中文av| 欧美亚洲日本在线观看| 成人3d动漫一区二区三区| 成年人黄色片视频| 精品久久久久久久无码| 男人女人黄一级| 亚洲综合色在线观看| 牛夜精品久久久久久久| www.国产福利| 亚洲小说欧美另类激情| 屁屁影院ccyy国产第一页| 国产成人在线小视频| 免费看毛片的网址| 日本不卡在线观看视频| 男人操女人免费软件| www.涩涩涩| 中文字幕av导航| 91.com在线| 丰满人妻中伦妇伦精品app| 黑鬼大战白妞高潮喷白浆| 在线视频日韩一区| 国产免费色视频| 美女扒开大腿让男人桶| 粉嫩虎白女毛片人体| 向日葵污视频在线观看| 三年中文高清在线观看第6集 | 男人添女人下面高潮视频| 超碰网在线观看| 日本特黄在线观看| 国产主播自拍av| 五月激情婷婷在线| 高清无码一区二区在线观看吞精| 青青青免费在线| 天堂中文av在线| 国产精品国产亚洲精品看不卡| 久久婷婷国产91天堂综合精品| 一区二区三区一级片| 18岁网站在线观看| 国产又大又长又粗又黄| 日日碰狠狠添天天爽超碰97| 最新中文字幕免费视频| 色爽爽爽爽爽爽爽爽| www日韩视频| 日本一本中文字幕| 999热精品视频| 精品视频无码一区二区三区| 欧美日韩午夜爽爽| xxx国产在线观看| 欧美黄色免费影院| 日本丰满大乳奶| 波多野结衣xxxx| 大陆极品少妇内射aaaaa| 欧美在线a视频| 中文久久久久久| 日韩av综合在线观看| 国产爆乳无码一区二区麻豆| 一级做a爱视频| 色一情一区二区三区| 好男人www社区| 亚洲少妇第一页| 丁香婷婷激情网| 成人观看免费完整观看| 国产精品一区二区免费在线观看| 国产 欧美 日本| 三级黄色片免费看| 手机av在线网| 国产女同无遮挡互慰高潮91| 国产成人美女视频| av在线免费看片| 亚洲自拍偷拍一区二区三区| 在线观看av免费观看| √天堂资源在线| 91免费版看片| 好吊色视频988gao在线观看| 影音先锋成人资源网站| 看一级黄色录像| 激情五月婷婷六月| 玩弄中年熟妇正在播放| 黄色动漫在线免费看| 国产美女三级视频| 成人性生生活性生交12| 男操女免费网站| 91插插插影院| 黄色大片中文字幕| 老头吃奶性行交视频| 黄色片视频在线| 少妇高潮大叫好爽喷水| 国产色一区二区三区| 久久国产亚洲精品无码| 亚欧美在线观看| 好吊色视频988gao在线观看| 国产精品专区在线| 中文字幕国内自拍| 青青视频免费在线观看| 日韩小视频在线播放| 亚洲成人福利在线| 日本免费成人网| 北条麻妃视频在线| 日韩精品手机在线观看| 成人在线看视频| 免费观看国产视频在线| 北条麻妃视频在线| 大荫蒂性生交片| 色婷婷成人在线| 午夜精品久久久久久久无码 | 青青草国产精品视频| 精品免费国产一区二区| 超碰97免费观看| 午夜在线观看av| 中国丰满熟妇xxxx性| 在线观看免费视频高清游戏推荐| 特色特色大片在线| xx欧美撒尿嘘撒尿xx| xxxx18hd亚洲hd捆绑| 福利视频999| 日本老熟妇毛茸茸| 日本a在线免费观看| 成人性生交视频免费观看| 日本精品一区二区三区四区| 亚洲乱码日产精品bd在线观看| www.国产视频.com| 国产精品69页| 欧美 国产 综合| 国产伦精品一区二区三区四区视频_ | 欧美午夜性视频| 乱子伦一区二区| 超碰成人在线免费观看| 国产乱码一区二区三区四区| 蜜臀久久99精品久久久酒店新书| 中国丰满熟妇xxxx性| 美女黄色免费看| 免费观看国产精品视频| 99久久国产综合精品五月天喷水| 最新av网址在线观看| 日本三级福利片|