forked from fastai/fastai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
applications.html
88 lines (72 loc) · 4.95 KB
/
applications.html
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
title: applications
keywords: fastai
sidebar: home_sidebar
summary: "Types of problems you can apply the fastai library to"
---
<!--
#################################################
### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ###
#################################################
# file to edit: docs_src/applications.ipynb
# instructions: https://docs.fast.ai/gen_doc_main.html
-->
<div class="container" id="notebook-container">
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h2 id="Application-fields">Application fields<a class="anchor-link" href="#Application-fields">¶</a></h2>
</div>
</div>
</div>
<div class="cell border-box-sizing code_cell rendered">
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<p>The fastai library allows you to train a <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module"><code>Model</code></a> on a certain <a href="/basic_data.html#DataBunch"><code>DataBunch</code></a> very easily by binding them together inside a <a href="/basic_train.html#Learner"><code>Learner</code></a> object. This module regroups the tools the library provides to help you preprocess and group your data in this format.</p>
<h2 id="collab"><a href="/collab.html#collab"><code>collab</code></a><a class="anchor-link" href="#collab">¶</a></h2><p>This submodule handles the collaborative filtering problems.</p>
<h2 id="tabular"><a href="/tabular.html#tabular"><code>tabular</code></a><a class="anchor-link" href="#tabular">¶</a></h2><p>This sub-package deals with tabular (or structured) data.</p>
<h2 id="text"><a href="/text.html#text"><code>text</code></a><a class="anchor-link" href="#text">¶</a></h2><p>This sub-package contains everything you need for Natural Language Processing.</p>
<h2 id="vision"><a href="/vision.html#vision"><code>vision</code></a><a class="anchor-link" href="#vision">¶</a></h2><p>This sub-package contains the classes that deal with Computer Vision.</p>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h2 id="Module-structure">Module structure<a class="anchor-link" href="#Module-structure">¶</a></h2><p>In each case (except for <a href="/collab.html#collab"><code>collab</code></a>), the module is organized this way:</p>
<h3 id="transform"><a href="/tabular.transform.html#tabular.transform"><code>transform</code></a><a class="anchor-link" href="#transform">¶</a></h3><p>This sub-module deals with the pre-processing (data augmentation for images, cleaning for tabular data, tokenizing and numericalizing for text).</p>
<h3 id="data"><a href="/tabular.data.html#tabular.data"><code>data</code></a><a class="anchor-link" href="#data">¶</a></h3><p>This sub-module defines the dataset class(es) to deal with this kind of data.</p>
<h3 id="models"><a href="/tabular.models.html#tabular.models"><code>models</code></a><a class="anchor-link" href="#models">¶</a></h3><p>This sub-module defines the specific models used for this kind of data.</p>
<h3 id="learner"><a href="/text.learner.html#text.learner"><code>learner</code></a><a class="anchor-link" href="#learner">¶</a></h3><p>When it exists, this sub-module contains functions that will directly bind this data with a suitable model and add the necessary callbacks.</p>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h2 id="Usage">Usage<a class="anchor-link" href="#Usage">¶</a></h2><p>To start using any of the above applications, simply import the top level module.<br>
All the <a href="#Module-structure">submodules</a> get included.</p>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<p>The general structure is:</p>
<div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">fastai.</span><span class="p">[</span><span class="n">APPLICATION</span><span class="p">]</span> <span class="kn">import</span> <span class="o">*</span>
</pre></div>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<p>For example, to use collab:</p>
<div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">fastai.collab</span> <span class="kn">import</span> <span class="o">*</span>
</pre></div>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<p><em>For more information on <a href="/index.html#imports">imports</a></em></p>
</div>
</div>
</div>
</div>