@@ -1,7 +0,0 @@ | |||||
fastNLP.modules.aggregator.attention | |||||
==================================== | |||||
.. automodule:: fastNLP.modules.aggregator.attention | |||||
:members: | |||||
:undoc-members: | |||||
:show-inheritance: |
@@ -1,7 +0,0 @@ | |||||
fastNLP.modules.aggregator.pooling | |||||
================================== | |||||
.. automodule:: fastNLP.modules.aggregator.pooling | |||||
:members: | |||||
:undoc-members: | |||||
:show-inheritance: |
@@ -1,17 +0,0 @@ | |||||
fastNLP.modules.aggregator | |||||
========================== | |||||
.. automodule:: fastNLP.modules.aggregator | |||||
:members: | |||||
:undoc-members: | |||||
:show-inheritance: | |||||
子模块 | |||||
---------- | |||||
.. toctree:: | |||||
:titlesonly: | |||||
fastNLP.modules.aggregator.attention | |||||
fastNLP.modules.aggregator.pooling | |||||
@@ -12,6 +12,5 @@ fastNLP.modules | |||||
.. toctree:: | .. toctree:: | ||||
:titlesonly: | :titlesonly: | ||||
fastNLP.modules.aggregator | |||||
fastNLP.modules.decoder | fastNLP.modules.decoder | ||||
fastNLP.modules.encoder | fastNLP.modules.encoder |
@@ -55,7 +55,6 @@ fastNLP 在 :mod:`~fastNLP.models` 模块中内置了如 :class:`~fastNLP.models | |||||
安装指南 </user/installation> | 安装指南 </user/installation> | ||||
快速入门 </user/quickstart> | 快速入门 </user/quickstart> | ||||
详细指南 </user/tutorials> | 详细指南 </user/tutorials> | ||||
科研指南 </user/with_fitlog> | |||||
API 文档 | API 文档 | ||||
------------- | ------------- | ||||
@@ -1,6 +1,6 @@ | |||||
================= | |||||
科研向导 | |||||
================= | |||||
============================================ | |||||
使用fitlog 辅助 fastNLP 进行科研 | |||||
============================================ | |||||
本文介绍结合使用 fastNLP 和 fitlog 进行科研的方法。 | 本文介绍结合使用 fastNLP 和 fitlog 进行科研的方法。 | ||||
@@ -122,6 +122,9 @@ FastNLP 同样提供了多种删除数据的方法 :func:`~fastNLP.DataSet.drop` | |||||
return words | return words | ||||
dataset.apply(get_words, new_field_name='words') | dataset.apply(get_words, new_field_name='words') | ||||
除了手动处理数据集之外,你还可以使用 fastNLP 提供的各种 :class:`~fastNLP.io.base_loader.DataSetLoader` 来进行数据处理。 | |||||
详细请参考这篇教程 :doc:`使用DataSetLoader加载数据集 </tutorials/tutorial_2_load_dataset>` 。 | |||||
----------------------------- | ----------------------------- | ||||
DataSet与pad | DataSet与pad | ||||
----------------------------- | ----------------------------- | ||||
@@ -1,4 +1,3 @@ | |||||
============================================================================== | ============================================================================== | ||||
Callback 教程 | Callback 教程 | ||||
============================================================================== | ============================================================================== | ||||
@@ -54,6 +53,7 @@ Callback的构建和使用 | |||||
在定义好 :class:`~fastNLP.Callback` 之后,就能将它传入Trainer的 ``callbacks`` 参数,在实际训练时使用。 | 在定义好 :class:`~fastNLP.Callback` 之后,就能将它传入Trainer的 ``callbacks`` 参数,在实际训练时使用。 | ||||
.. code-block:: python | .. code-block:: python | ||||
""" | """ | ||||
数据预处理,模型定义等等 | 数据预处理,模型定义等等 | ||||
""" | """ | ||||
@@ -124,6 +124,19 @@ False False False | |||||
True True True | True True True | ||||
===== ===== ====== | ===== ===== ====== | ||||
csv 表格 | |||||
============ | |||||
.. csv-table:: | |||||
:header: sentence, target | |||||
This is the first instance ., 0 | |||||
Second instance ., 1 | |||||
Third instance ., 1 | |||||
..., ... | |||||
[重要]各种链接 | [重要]各种链接 | ||||
=================== | =================== | ||||
@@ -131,7 +144,7 @@ True True True | |||||
\<\>内表示的是链接地址,\<\>外的是显示到外面的文字 | \<\>内表示的是链接地址,\<\>外的是显示到外面的文字 | ||||
:doc:`根据文件名链接 </user/with_fitlog>` | |||||
:doc:`根据文件名链接 </user/quickstart>` | |||||
:mod:`~fastNLP.core.batch` | :mod:`~fastNLP.core.batch` | ||||
@@ -14,4 +14,5 @@ fastNLP详细使用教程 | |||||
7. 使用Modules和Models快速搭建自定义模型 </tutorials/tutorial_7_modules_models> | 7. 使用Modules和Models快速搭建自定义模型 </tutorials/tutorial_7_modules_models> | ||||
8. 使用Metric快速评测你的模型 </tutorials/tutorial_8_metrics> | 8. 使用Metric快速评测你的模型 </tutorials/tutorial_8_metrics> | ||||
9. 使用Callback自定义你的训练过程 </tutorials/tutorial_9_callback> | 9. 使用Callback自定义你的训练过程 </tutorials/tutorial_9_callback> | ||||
10. 使用fitlog 辅助 fastNLP 进行科研 </tutorials/tutorial_10_fitlog> | |||||
@@ -674,7 +674,7 @@ class TensorboardCallback(Callback): | |||||
.. warning:: | .. warning:: | ||||
fastNLP 已停止对此功能的维护,请等待 fastNLP 兼容 PyTorch1.1 的下一个版本。 | fastNLP 已停止对此功能的维护,请等待 fastNLP 兼容 PyTorch1.1 的下一个版本。 | ||||
或者使用和 fastNLP 高度配合的 fitlog(参见 :doc:`/user/with_fitlog` )。 | |||||
或者使用和 fastNLP 高度配合的 fitlog(参见 :doc:`/tutorials/tutorial_10_fitlog` )。 | |||||
""" | """ | ||||