ml_dataset_cn.html 15.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64


<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>MovieLens数据集 &mdash; PaddlePaddle  文档</title>
  

  
  

  

  
  
    

  

  
  
    <link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
  

  
  
        <link rel="index" title="索引"
              href="../../genindex.html"/>
        <link rel="search" title="搜索" href="../../search.html"/>
    <link rel="top" title="PaddlePaddle  文档" href="../../index.html"/> 

  <link rel="stylesheet" href="https://cdn.jsdelivr.net/perfect-scrollbar/0.6.14/css/perfect-scrollbar.min.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/css/override.css" type="text/css" />
  <script>
  var _hmt = _hmt || [];
  (function() {
    var hm = document.createElement("script");
    hm.src = "//hm.baidu.com/hm.js?b9a314ab40d04d805655aab1deee08ba";
    var s = document.getElementsByTagName("script")[0]; 
    s.parentNode.insertBefore(hm, s);
  })();
  </script>

  

  
  <script src="../../_static/js/modernizr.min.js"></script>

</head>

<body class="wy-body-for-nav" role="document">

  
  <header class="site-header">
    <div class="site-logo">
      <a href="/"><img src="../../_static/images/PP_w.png"></a>
    </div>
    <div class="site-nav-links">
      <div class="site-menu">
65
        <a class="fork-on-github" href="https://github.com/PaddlePaddle/Paddle" target="_blank"><i class="fa fa-github"></i>Fork me on Github</a>
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
        <div class="language-switcher dropdown">
          <a type="button" data-toggle="dropdown">
            <span>English</span>
            <i class="fa fa-angle-up"></i>
            <i class="fa fa-angle-down"></i>
          </a>
          <ul class="dropdown-menu">
            <li><a href="/doc_cn">中文</a></li>
            <li><a href="/doc">English</a></li>
          </ul>
        </div>
        <ul class="site-page-links">
          <li><a>Home</a></li>
          <li><a>Get Started</a></li>
          <li class="active"><a>Documentation</a></li>
          <li><a>About Us</a></li>
        </ul>
      </div>
      <div class="doc-module">
        
        <ul>
<li class="toctree-l1"><a class="reference internal" href="../../getstarted/index_cn.html">新手入门</a></li>
<li class="toctree-l1"><a class="reference internal" href="../index_cn.html">完整教程</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../howto/index_cn.html">进阶指南</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../api/index_cn.html">API</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../faq/index_cn.html">FAQ</a></li>
</ul>

        
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>        
      </div>
    </div>
  </header>
  
  <div class="main-content-wrap">

    
    <nav class="doc-menu-vertical" role="navigation">
        
          
          <ul>
<li class="toctree-l1"><a class="reference internal" href="../../getstarted/index_cn.html">新手入门</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../../getstarted/build_and_install/index_cn.html">安装与编译</a><ul>
115
<li class="toctree-l3"><a class="reference internal" href="../../getstarted/build_and_install/docker_install_cn.html">PaddlePaddle的Docker容器使用方式</a></li>
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
<li class="toctree-l3"><a class="reference internal" href="../../getstarted/build_and_install/ubuntu_install_cn.html">Ubuntu部署PaddlePaddle</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../getstarted/build_and_install/cmake/build_from_source_cn.html">PaddlePaddle的编译选项</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../getstarted/basic_usage/index_cn.html">经典的线性回归任务</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../index_cn.html">完整教程</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../quick_start/index_cn.html">快速入门</a></li>
<li class="toctree-l2"><a class="reference internal" href="ml_regression_cn.html">个性化推荐</a></li>
<li class="toctree-l2"><a class="reference internal" href="../image_classification/index_cn.html">图像分类</a></li>
<li class="toctree-l2"><a class="reference internal" href="../sentiment_analysis/index_cn.html">情感分析</a></li>
<li class="toctree-l2"><a class="reference internal" href="../semantic_role_labeling/index_cn.html">语义角色标注</a></li>
<li class="toctree-l2"><a class="reference internal" href="../text_generation/index_cn.html">机器翻译</a></li>
<li class="toctree-l2"><a class="reference internal" href="../imagenet_model/resnet_model_cn.html">ResNet模型</a></li>
<li class="toctree-l2"><a class="reference internal" href="../embedding_model/index_cn.html">词向量模型</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../howto/index_cn.html">进阶指南</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../../howto/usage/cmd_parameter/index_cn.html">设置命令行参数</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../howto/usage/cmd_parameter/use_case_cn.html">使用案例</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../howto/usage/cmd_parameter/arguments_cn.html">参数概述</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../howto/usage/cmd_parameter/detail_introduction_cn.html">细节描述</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../howto/usage/concepts/use_concepts_cn.html">基本使用概念</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../howto/usage/cluster/cluster_train_cn.html">运行分布式训练</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../howto/usage/k8s/k8s_basis_cn.html">Kubernetes 简介</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../howto/usage/k8s/k8s_basis_cn.html#kubernetes">部署Kubernetes集群</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../howto/usage/k8s/k8s_basis_cn.html#">选择存储方案</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../howto/usage/k8s/k8s_basis_cn.html#kubectl">配置kubectl</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../howto/usage/k8s/k8s_cn.html">Kubernetes单机训练</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../howto/usage/k8s/k8s_distributed_cn.html">Kubernetes分布式训练</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../howto/dev/write_docs_cn.html">如何贡献/修改文档</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../howto/dev/contribute_to_paddle_cn.html">如何贡献代码</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../howto/deep_model/rnn/index_cn.html">RNN相关模型</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../howto/deep_model/rnn/rnn_config_cn.html">RNN配置</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../howto/deep_model/rnn/recurrent_group_cn.html">Recurrent Group教程</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../howto/deep_model/rnn/hierarchical_layer_cn.html">支持双层序列作为输入的Layer</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../howto/deep_model/rnn/hrnn_rnn_api_compare_cn.html">单双层RNN API对比介绍</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../howto/optimization/gpu_profiling_cn.html">GPU性能分析与调优</a></li>
</ul>
</li>
161 162 163 164 165 166
<li class="toctree-l1"><a class="reference internal" href="../../api/index_cn.html">API</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../../api/v2/model_configs.html">Configuration Related API</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../api/v2/data.html">Data Related API</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../api/v2/run_logic.html">Trainer API</a></li>
</ul>
</li>
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366
<li class="toctree-l1"><a class="reference internal" href="../../faq/index_cn.html">FAQ</a></li>
</ul>

        
    </nav>
    
    <nav class="local-toc"><ul>
<li><a class="reference internal" href="#">MovieLens数据集</a><ul>
<li><a class="reference internal" href="#">数据集特征</a><ul>
<li><a class="reference internal" href="#ratings-dat">评分文件描述(ratings.dat)</a></li>
<li><a class="reference internal" href="#users-dat">用户文件描述(users.dat)</a></li>
<li><a class="reference internal" href="#movies-dat">电影文件描述(movies.dat)</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</nav>
    
    <section class="doc-content-wrap">

      

 







<div role="navigation" aria-label="breadcrumbs navigation">
  <ul class="wy-breadcrumbs">
      
    <li>MovieLens数据集</li>
  </ul>
</div>
      
      <div class="wy-nav-content" id="doc-content">
        <div class="rst-content">
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="movielens">
<span id="movielens"></span><span id="demo-ml-dataset"></span><h1>MovieLens数据集<a class="headerlink" href="#movielens" title="永久链接至标题"></a></h1>
<p><a class="reference external" href="http://grouplens.org/datasets/movielens/">MovieLens 数据集</a>由GroupLens Research实验室搜集整理。
该数据集包含一些用户信息、电影信息以及电影评分[1-5]。根据数据量规模,该数据及有很多不同的版本。
我们用<a class="reference external" href="http://files.grouplens.org/datasets/movielens/ml-1m.zip">MovieLens 百万数据集</a>作为示例数据
集,其中包含6,000位用户对4,000部电影的1,000,000条评价。该数据集于2003年2月发布。</p>
<div class="section" id="">
<span id="id1"></span><h2>数据集特征<a class="headerlink" href="#" title="永久链接至标题"></a></h2>
<p><a class="reference external" href="http://files.grouplens.org/datasets/movielens/ml-1m.zip">ml-1m 数据集</a>中有许多的特征。在[ml-1m 数据集]
(http://files.grouplens.org/datasets/movielens/ml-1m.zip)中的这些数据文件(含有&#8221;.dat&#8221;的后缀)实际上是CSV文件,
分隔符为&#8221;::&#8221;。以下我们翻译数据集网站中README文件的描述:</p>
<div class="section" id="ratings-dat">
<span id="ratings-dat"></span><h3>评分文件描述(ratings.dat)<a class="headerlink" href="#ratings-dat" title="永久链接至标题"></a></h3>
<p>所有的评分数据都包含在&#8221;ratings.dat&#8221;文件中,遵循如下的格式:</p>
<p>用户ID::电影ID::评分::时间戳</p>
<ul class="simple">
<li>用户ID范围从1到6040</li>
<li>电影ID范围从1到3952</li>
<li>评分被调整为5星的规模(只允许整数的星级)</li>
<li>时间戳表示为从1970-01-01(UTC)来的秒数,与time(2)的返回值一致</li>
<li>每位用户至少有20条评分</li>
</ul>
</div>
<div class="section" id="users-dat">
<span id="users-dat"></span><h3>用户文件描述(users.dat)<a class="headerlink" href="#users-dat" title="永久链接至标题"></a></h3>
<p>所有的用户信息都包含在&#8221;users.dat&#8221;文件中,遵循如下的格式:</p>
<p>用户ID::性别::年龄::职业::邮编</p>
<p>所有的人口统计学信息由用户自愿提供,没有进行正确性的检查。只有含有人
口统计学信息的用户才被包含在数据集中。</p>
<ul class="simple">
<li>性别,用&#8221;M&#8221;表示男性,&#8221;F&#8221;表示女性</li>
<li>年龄从下列列表范围中选取:<ul>
<li>1:  &#8220;18岁以下&#8221;</li>
<li>18:  &#8220;18-24岁&#8221;</li>
<li>25:  &#8220;25-34岁&#8221;</li>
<li>35:  &#8220;35-44岁&#8221;</li>
<li>45:  &#8220;45-49岁&#8221;</li>
<li>50:  &#8220;50-55岁&#8221;</li>
<li>56:  &#8220;56+&#8221;</li>
</ul>
</li>
<li>职业从下面所列中选择:<ul>
<li>0:  &#8220;其他&#8221;或不确定</li>
<li>1:  &#8220;学术/教育工作者&#8221;</li>
<li>2:  &#8220;艺术家&#8221;</li>
<li>3:  &#8220;文书工作/管理员&#8221;</li>
<li>4:  &#8220;大学生/研究生&#8221;</li>
<li>5:  &#8220;客户服务&#8221;</li>
<li>6:  &#8220;医生/医疗保健&#8221;</li>
<li>7:  &#8220;行政工作/管理人员&#8221;</li>
<li>8:  &#8220;农民&#8221;</li>
<li>9:  &#8220;操持家务者&#8221;</li>
<li>10:  &#8220;高中毕业生&#8221;</li>
<li>11:  &#8220;律师&#8221;</li>
<li>12:  &#8220;程序员&#8221;</li>
<li>13:  &#8220;退休人员&#8221;</li>
<li>14:  &#8220;销售/市场&#8221;</li>
<li>15:  &#8220;科学家&#8221;</li>
<li>16:  &#8220;自由职业者&#8221;</li>
<li>17:  &#8220;技术员/工程师&#8221;</li>
<li>18:  &#8220;推销员/手工艺者&#8221;</li>
<li>19:  &#8220;无业人士&#8221;</li>
<li>20:  &#8220;作家&#8221;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="movies-dat">
<span id="movies-dat"></span><h3>电影文件描述(movies.dat)<a class="headerlink" href="#movies-dat" title="永久链接至标题"></a></h3>
<p>所有的电影信息都包含在&#8221;movies.dat&#8221;文件中,遵循如下的格式:</p>
<p>电影ID::电影名称::电影类型</p>
<ul class="simple">
<li>电影名称(包括发行时间)与IMDB网站提供的一致</li>
<li>电影类型如符合多种用管道符号|分割,选自下列类型:<ul>
<li>动作片</li>
<li>冒险片</li>
<li>动画片</li>
<li>儿童片</li>
<li>喜剧片</li>
<li>犯罪片</li>
<li>纪录片</li>
<li>戏剧</li>
<li>奇幻片</li>
<li>黑色电影</li>
<li>恐怖片</li>
<li>音乐剧</li>
<li>悬疑片</li>
<li>浪漫片</li>
<li>科幻片</li>
<li>惊险电影</li>
<li>战争片</li>
<li>西部片</li>
</ul>
</li>
<li>由于意外的副本记录和测试记录,有些电影ID可能与实际电影不相符合</li>
<li>电影大部分是手工输入数据,因此可能会有一些错误和不一致发生</li>
</ul>
</div>
</div>
</div>


           </div>
          </div>
          <footer>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2016, PaddlePaddle developers.

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  

    <script type="text/javascript">
        var DOCUMENTATION_OPTIONS = {
            URL_ROOT:'../../',
            VERSION:'',
            COLLAPSE_INDEX:false,
            FILE_SUFFIX:'.html',
            HAS_SOURCE:  true
        };
    </script>
      <script type="text/javascript" src="../../_static/jquery.js"></script>
      <script type="text/javascript" src="../../_static/underscore.js"></script>
      <script type="text/javascript" src="../../_static/doctools.js"></script>
      <script type="text/javascript" src="../../_static/translations.js"></script>
      <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
       
  

  
  
    <script type="text/javascript" src="../../_static/js/theme.js"></script>
  
  
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/perfect-scrollbar/0.6.14/js/perfect-scrollbar.jquery.min.js"></script>
  <script src="../../_static/js/paddle_doc_init.js"></script> 

</body>
367
</html>