---

title: Tianchi dataset


keywords: fastai
sidebar: home_sidebar

summary: "Tianchi dataset."
description: "Tianchi dataset."
nb_path: "nbs/datasets/tianchi.ipynb"
---
<!--

#################################################
### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ###
#################################################
# file to edit: nbs/datasets/tianchi.ipynb
# command to build the docs after a change: nbdev_build_docs

-->

<div class="container" id="notebook-container">
        
    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="TianchiDataset" class="doc_header"><code>class</code> <code>TianchiDataset</code><a href="https://github.com/RecoHut-Projects/recohut/tree/master/recohut/datasets/tianchi.py#L16" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>TianchiDataset</code>(<strong><code>root</code></strong>) :: <a href="/recohut/retailrocket.html#Dataset"><code>Dataset</code></a></p>
</blockquote>
<p>Dataset base class</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">
<div class="input">

<div class="inner_cell">
    <div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">ds</span> <span class="o">=</span> <span class="n">TianchiDataset</span><span class="p">(</span><span class="n">root</span><span class="o">=</span><span class="s1">&#39;/content/tianchi&#39;</span><span class="p">)</span>
</pre></div>

    </div>
</div>
</div>

<div class="output_wrapper">
<div class="output">

<div class="output_area">

<div class="output_subarea output_stream output_stderr output_text">
<pre>Processing...
</pre>
</div>
</div>

<div class="output_area">

<div class="output_subarea output_stream output_stdout output_text">
<pre>n_users: 80000, n_items: 1046825, behavior length: 3232761
</pre>
</div>
</div>

<div class="output_area">

<div class="output_subarea output_stream output_stderr output_text">
<pre>Done!
</pre>
</div>
</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">
<div class="input">

<div class="inner_cell">
    <div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="o">!</span>tree --du -h -C /content/tianchi
</pre></div>

    </div>
</div>
</div>

<div class="output_wrapper">
<div class="output">

<div class="output_area">

<div class="output_subarea output_stream output_stdout output_text">
<pre><span class="ansi-blue-intense-fg ansi-bold">/content/tianchi</span>
├── [160M]  <span class="ansi-blue-intense-fg ansi-bold">processed</span>
│   └── [160M]  tianchi.csv
└── [2.1G]  <span class="ansi-blue-intense-fg ansi-bold">raw</span>
    ├── [114M]  item.csv
    ├── [2.0G]  user_behavior.csv
    └── [ 19M]  user.csv

 2.3G used in 2 directories, 4 files
</pre>
</div>
</div>

</div>
</div>

</div>
    {% endraw %}

</div>
 

