TensorFlow作业代写、代做Python程序语言作业、代写github课程作业、Python实验作业代写

日期:2019-07-10 10:34

Python Practical

Examine the accuracy of a TensorFlow recommendation engine.

Tensorflow is a popular framework for machine learning. The popularity is in some for some part that it can utilise the GPU on computers making it very fast.

TF-Recomm is a movie recommendation engine built on tensorflow which uses a Factorization model and a data set from movielens. The original code https://github.com/songgc/TF-recomm does not have a interface to ask for recommendations.

Andy has created a version that listens on a port for a user number and will return recommendations for that user. The code is by no means perfect and there may be errors ! The code is bundled into a Docker container for ease of use. To use this code :

Standard Small Version

Clone the project from https://github.com/acobley/TF-recomm.git

git clone https://github.com/acobley/TF-recomm.git

Run the docker container:

docker run --name runtfrecomm -p 81:81 -i -t acobley/tfrecomm bash

This will start a docker container an open it with a command line. Change to the TF-recomm directory and run the engine

python svd_train_val.py

This will train the model and once done wait for a socket connection. Open another window and open a telnet session (if you are on windows you will need to get one):

telnet localhost 81

Type and number between 1 and about 5000 and you should get recommendations back.

GPU large version

This version uses a much bigger data set and should use your GPU. This version has not been tested, make sure the small version works first.

Clone the project as before but switch to the GPU branch

git checkout GPU

run the docker container as :

docker run --name runtfrecommgpu -p 81:81 -i -t acobley/tfrecommgpu bash

You should be able to run it in the same way as the small model.

The Problem

This model is trained from the set of data from movielens. The model only uses the ratings.dat file to train the model. However there are two other files, movies.dat and users.dat. The challenge is to write a python program that will interrogate the model and allow you to get an idea of how accurate the model is. To do this you will need to use the movies and users file.

The Movies file:

See http://files.grouplens.org/datasets/movielens/ml-1m-README.txt

The file is in the format:

MovieID::Title::Genres

Genres are a list with | delimitors.

The Users file

See http://files.grouplens.org/datasets/movielens/ml-1m-README.txt

The file is in the format:

UserID::Gender::Age::Occupation::Zip-code

See the readme file for details of the Age and Occupation field.

What to do

If you look carefully, you will see that there are users with similar gender, age and occupation and possibly zip code. You would imagine that users same demographic would receive similar recommendations. Write a Python program that finds users of a similar demographic, attach to the tensorflow container, send the user id’s, store the recommendations and look for similarities. You could look at the genres returned and see if they are similar for similar users. You could extend the the movies file using python to include age ratings and use that as a comparison of the returned movies. You might want to use R to analyse the results you obtain to look for statistical meaning.

Write a report on the code you have produced and any results you have generated. Include your code in the appendix (and a zip file of the code). Your report should be less than 10 pages.

python实验报告代写_TensorFlow作业代写、代做Python程序语言作业、代写github课程作业、Python实验作业代写...相关推荐

  1. [Python学习]PycURL简单学习 - limodou的学习记录 - limodou是一个程序员,他关心的焦点是Python, DocBook, Open Source …...

    [Python学习]PycURL简单学习 - limodou的学习记录 - limodou是一个程序员,他关心的焦点是Python, DocBook, Open Source - [Python学习] ...

  2. Java实验报告四,研究生薪资管理,创建一个抽象交通工具Vehicle类,经理与员工工资等实验

  3. 基于python物流管理系统毕业设计-Python程序设计实验报告一 :熟悉IDLE和在线编程平台...

    Python程序设计实验报告 班级 物流192 姓名 张羽 学号 3190505221 成绩 日期 3月5日 指导老师 修宇 实验名称 实验一 熟悉IDLE和在线编程平台 实验目的 1.掌握pytho ...

  4. python的实验报告大一心理_python的期末实验报告

    青岛工学院 实验报告 <Python 语言基础>实验报告 实验室: 实验题目 年... python大作业实验报告.pptx_计算机软件及应用_IT/计算机_专业资料.... 温州大学瓯江 ...

  5. python上机实验报告读取文件_Python程序设计实验报告八 : 文件

    安徽工程大学 Python程序设计 实验报告 班级 物流192 姓名凌剑涛 学号 3190505233成绩 日期2020.6.3 指导老师 修宇 实验八 文件 [实验目的] 掌握读写文本文件或CSV文 ...

  6. 基于python物流管理系统毕业设计-Python程序设计实验报告八:文件

    安徽工程大学 Python程序设计 实验报告 .班级 物流192 姓名张羽学号3190505221成绩 日期2020.6.3指导老师修宇 实验八 文件 [实验目的] 掌握读写文本文件或 CSV 文件, ...

  7. 太原理工大学linux与python编程r实验报告_太原理工大学算法设计与分析实验报告...

    <太原理工大学算法设计与分析实验报告>由会员分享,可在线阅读,更多相关<太原理工大学算法设计与分析实验报告(12页珍藏版)>请在人人文库网上搜索. 1.本科实验报告课程名称: ...

  8. python顺序结构实验设计_Python程序设计实验报告二:顺序结构程序设计

    安徽工程大学 Python程序设计实验报告 班级 物流192 姓名 周立 学号 3190505227成绩 日期 3月4日 指导老师修宇 实验二 顺序结构程序设计(验证性实验) [实验目的] (1)掌握 ...

  9. python组合数据类型实验_Python程序设计实验报告七:组合数据类型

    安徽工程大学 Python程序设计 实验报告 班级  物流192   姓名刘晨晨学号3190505214 日期   2020.5.27    指导老师修宇 [实验名称]实验七 组合数据类型 [实验目的 ...

  10. python程序设计实验七_Python程序设计实验报告七:组合数据类型

    安徽工程大学 Python程序设计实验报告 班级物流192姓名芦靓学号3190505217成绩 日期2020.5.27指导老师修宇 [实验名称]实验七 组合数据类型 [实验目的] 熟悉通过序列索引迭代 ...

最新文章

  1. R语言使用yardstick包的roc_curve函数评估多分类(Multiclass)模型的性能、查看模型在多分类每个分类上的ROC曲线(roc curve)
  2. nginx 上传文件 405_今天教大家Nginx+tomcat负载均衡群集如何配置
  3. Firefox开发者工具里的CSS Flexbox Inspector
  4. 焦作一中高考成绩查询2021,2021年焦作高中学校排名及录取分数线排名
  5. java mybatis 代码生成器_Java MyBatis-Plus 代码生成器
  6. python元组取值_Python基础之元组
  7. python if else用法同一行_在Python的同一行中使用if else for和del吗?-问答-阿里云开发者社区-阿里云...
  8. 【Eclipse】Eclipse常用操作
  9. window下nginx反向代理配置
  10. win10双网卡冗余的几种方法
  11. 入门OJ 4187【周末舞会】
  12. [深入Python]Alex Martelli的Borg类
  13. Python多进程实现原理
  14. python3 打包exe 加密_python代码加密之生成exe可执行文件
  15. 数据库:实验五MySQL数据库对象-(视图、索引)
  16. java数组位置_java数组中如何查找元素的位置?
  17. HBuilder开发旅游类APP(二) ----- mui结合H5+,快速实现首页、登录、注册等功能
  18. SpringBoot打成Jar包运行,获取运行Jar包的目录
  19. Kafka常用shell脚本命令
  20. 会议邀请〡第六届全国高校电子信息类课程教学研讨会邀请函

热门文章

  1. gulp-cli命令安装出错_一个牛逼的数据库操作命令行工具:mycli
  2. php获取上海时间代码,PHP获取常用时间的总结
  3. Java虚拟机(一)——虚拟机概述
  4. 11静态static
  5. phpMyAdmin链接MySQL拒接_phpmyadmin连接MySQL服务器被拒绝
  6. rocketmq java实战_RocketMQ实战与原理解析 杨开元著 PDF下载
  7. php手册学习怎样,PHP新手之如何学习PHP的讲解
  8. java 四元一次方程_JAVA编写求解一元多次方程的程序,要求如下:
  9. 终端编译opengl程序编译运行_ubuntu – 通过SSH编写opengl代码,通过机器显示运行程序...
  10. 计算机硬件系统的安全,维护硬件系统的计算机安全论文