---

title: Tmall dataset


keywords: fastai
sidebar: home_sidebar

summary: "Tmall dataset."
description: "Tmall dataset."
nb_path: "nbs/datasets/tmall.ipynb"
---
<!--

#################################################
### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ###
#################################################
# file to edit: nbs/datasets/tmall.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="TmallDataset" class="doc_header"><code>class</code> <code>TmallDataset</code><a href="https://github.com/RecoHut-Projects/recohut/tree/master/recohut/datasets/tmall.py#L12" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>TmallDataset</code>(<strong><code>root</code></strong>, <strong><code>shuffle</code></strong>=<em><code>False</code></em>, <strong><code>n_node</code></strong>=<em><code>40727</code></em>, <strong><code>is_train</code></strong>=<em><code>True</code></em>) :: <a href="/recohut/base.html#SessionGraphDataset"><code>SessionGraphDataset</code></a></p>
</blockquote>
<p>References</p>

<pre><code>1. COTREC session-based recommender model training. https://t.ly/cXTH.</code></pre>

</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">root</span> <span class="o">=</span> <span class="s1">&#39;/content/tmall&#39;</span>

<span class="n">train_data</span> <span class="o">=</span> <span class="n">TmallDataset</span><span class="p">(</span><span class="n">root</span><span class="o">=</span><span class="n">root</span><span class="p">,</span> <span class="n">shuffle</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">is_train</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="n">test_data</span> <span class="o">=</span> <span class="n">TmallDataset</span><span class="p">(</span><span class="n">root</span><span class="o">=</span><span class="n">root</span><span class="p">,</span> <span class="n">shuffle</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span> <span class="n">is_train</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
</pre></div>

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

</div>
    {% endraw %}

</div>
 

