Skip to content

Commit

Permalink
Minor fixes in documentation (#813)
Browse files Browse the repository at this point in the history
* Fix documentation typo
* Fix title underlines in documentation to remove
warnings during documentation building
  • Loading branch information
chelobaka authored and JeanPaulShapo committed Jun 10, 2017
1 parent ffd85f4 commit 14d0e2b
Show file tree
Hide file tree
Showing 35 changed files with 60 additions and 60 deletions.
4 changes: 2 additions & 2 deletions docs/api_references/c_interface.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
==================
===========
C Interface
==================
===========

This document explains all public methods of the low level BigARTM interface, written in plain C language.

Expand Down
2 changes: 1 addition & 1 deletion docs/api_references/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.. _tutorial:

API References
=========
==============

.. toctree::
:maxdepth: 2
Expand Down
2 changes: 1 addition & 1 deletion docs/api_references/python_interface.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Python Interface
====================
================

This document describes all classes and functions
in python interface of BigARTM library.
Expand Down
2 changes: 1 addition & 1 deletion docs/api_references/python_interface/artm_model.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARTM model
================
==========

This page describes ARTM class.

Expand Down
2 changes: 1 addition & 1 deletion docs/api_references/python_interface/batches_utils.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Batches Utils
================
=============

This page describes BatchVectorizer class.

Expand Down
2 changes: 1 addition & 1 deletion docs/api_references/python_interface/dictionary.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Dictionary
================
==========

This page describes Dictionary class.

Expand Down
2 changes: 1 addition & 1 deletion docs/api_references/python_interface/lda_model.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
LDA model
================
=========

This page describes LDA class.

Expand Down
2 changes: 1 addition & 1 deletion docs/api_references/python_interface/regularizers.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Regularizers
================
============

This page describes *KlFunctionInfo* and *Regularizer* classes.

Expand Down
2 changes: 1 addition & 1 deletion docs/api_references/python_interface/score_tracker.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Score Tracker
================
=============

This page describes *ScoreTracker classes.

Expand Down
2 changes: 1 addition & 1 deletion docs/api_references/python_interface/scores.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Scores
================
======

This page describes *Scores classes.

Expand Down
2 changes: 1 addition & 1 deletion docs/devguide/code_style.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Code style
=========================
==========

.. sidebar:: Configure Visual Studio

Expand Down
6 changes: 3 additions & 3 deletions docs/devguide/create_regularizer.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Creating New Regularizer
=========================
========================

This manual describes all necessary steps you need to proceed to create your own regularizer in the core of BigARTM library. We assume you are now in the root directory of BigARTM. The Google Protocol Buffers technology will be used, so we also assume you familiar with it. The instructions will be forwarded with corresponding examples of two regularizers, one per matrix (New Regulrizer Phi and New regularizer Theta).

Expand Down Expand Up @@ -183,7 +183,7 @@ Also take into consideration the notation of parameters naming (for example, cla
for the changes to take effect.

Phi regularizer C++ code
-------------
------------------------

All you need is to implement the method

Expand All @@ -196,7 +196,7 @@ All you need is to implement the method
Here you use p_wt, n_wt and all information you have got as parameters through the config to count r_wt and put it in the ``result`` variable. The multiplication on ``tau`` and usage of coefficients of relative regularzation will be processed in further computations automaticaly and shouldn't worry you.

Theta regularizer C++ code
-------------
--------------------------

You need to create a class implementing the ``RegularizeThetaAgent`` interface (e.g., ``NewRegularizerThetaAgent``) and a class implementing ``RegularizerInterface`` interface (e.g., ``NewRegularizerTheta``).

Expand Down
2 changes: 1 addition & 1 deletion docs/devguide/dev_build_linux.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Build C++ code on Linux
=========================
=======================

Refer to :doc:`/installation/linux`.

Expand Down
2 changes: 1 addition & 1 deletion docs/devguide/downloads.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Downloads (Windows)
=========================
===================

Download and install the following tools:

Expand Down
2 changes: 1 addition & 1 deletion docs/devguide/ipython_windows.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Working with iPython notebooks remotely
=========================
=======================================

It turned out to be common scenario to run BigARTM on a Linux server (for example on Amazon EC2), while connecting to it from Windows through ``putty``.
Here is a convenient way to use ``ipython notebook`` in this scenario:
Expand Down
2 changes: 1 addition & 1 deletion docs/devguide/proto_windows.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Compiling .proto files on Windows
=========================
=================================

1. Open a new command prompt

Expand Down
2 changes: 1 addition & 1 deletion docs/devguide/python_windows.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Python code on Windows
=========================
======================

* Install Python 2.7 (this step is already done if you are following the instructions above),

Expand Down
2 changes: 1 addition & 1 deletion docs/devguide/source_code.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source code
=========================
===========

BigARTM is hosted in public GitHub repository:

Expand Down
2 changes: 1 addition & 1 deletion docs/installation/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Currently openSUSE require to install Boost from sources:
brew install git cmake boost
Step 2. Python packages
----------------------------------------------------------------
-----------------------
BigARTM require Python packages ``numpy``, ``pandas``, ``protobuf`` and ``tqdm``.
We recommend to install them with recent versino of ``pip``.

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/datasets.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Input Data Formats and Datasets
=======
===============================

* **Formats**

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.. _tutorial:

User's Guide
=========
============

.. toctree::
:maxdepth: 2
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/python_tutorial.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Python Tutorial
===============================
===============

For more detailes about ``artm.LDA``, ``artm.ARTM``, ``artm.BatchVectorizer`` and ``artm.Dictionary`` see :doc:`../api_references/python_interface/` and :doc:`python_userguide/index`.

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/python_userguide/attach_model.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
7. Attach Model and Custom Phi Initialization
=======
=============================================

Detailed description of all parameters and methods of BigARTM Python API classes can be found in :doc:`../../api_references/python_interface`.

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/python_userguide/base_plsa.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
2. Base PLSA Model with Perplexity Score
=========
========================================

Detailed description of all parameters and methods of BigARTM Python API classes can be found in :doc:`../../api_references/python_interface`.

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/python_userguide/coherence.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
6. Tokens Co-occurrence and Coherence Computation
==============================================
=================================================

* **Interpretability and Coherence of Topics**

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/python_userguide/different.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Different Useful Techniques
=======
===========================

* **Dictionary filtering**:

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/python_userguide/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.. _python_userguide:

Python Guide
=========
============

.. toctree::
:maxdepth: 2
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/python_userguide/loading_data.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1. Loading Data: BatchVectorizer and Dictionary
=======
===============================================

Detailed description of all parameters and methods of BigARTM Python API classes can be found in :doc:`../../api_references/python_interface`.

Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/python_userguide/m_artm.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
4. Multimodal Topic Models
=======
==========================

Detailed description of all parameters and methods of BigARTM Python API classes can be found in :doc:`../../api_references/python_interface`.

Now let's move to more complex cases. In last section цу mentioned the term `modality`. It's something that corresponds to each token. We prefer to think about it as about the type of token, For instance, some tokens form the main text in the document, some form the title, some from names of the authors, some from tags etc.
Now let's move to more complex cases. In last section we mentioned the term `modality`. It's something that corresponds to each token. We prefer to think about it as about the type of token, For instance, some tokens form the main text in the document, some form the title, some from names of the authors, some from tags etc.

In BigARTM each unique token has a modality. It is denoted as ``class_id`` (don't confuse with the classes in the task of classification). You can specify the ``class_id`` of the token, or the library will set it to ``@default_class``. This class id denotes the type of usual tokens, the type be default.

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/python_userguide/phi_theta_extraction.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
5. Phi and Theta Extraction. Transform Method
=======
=============================================

Detailed description of all parameters and methods of BigARTM Python API classes can be found in :doc:`../../api_references/python_interface`.

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/python_userguide/ptdw.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
8. Deal with Ptdw Matrix
=======
========================
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
3. Regularizers and Scores Usage
=========
================================

Detailed description of all parameters and methods of BigARTM Python API classes can be found in :doc:`../../api_references/python_interface`. Description of regularizers can be found in :doc:`../regularizers_descr`.

Expand Down
24 changes: 12 additions & 12 deletions docs/tutorials/regularizers_descr.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Regularizers Description
=========
========================

This page describes the features and cases of usage of the regularizers, that have already been implemented in the core of BigARTM library. Detailed description of parameters of the regularizers in the Python API can be seen in :doc:`../api_references/python_interface/regularizers`.

Expand All @@ -8,7 +8,7 @@ Examples of the usage of the regularizers can be found in :doc:`python_tutorial`
Note: The influence of any regularizer with ``tau`` parameter in it's M-step formula can be controlled via this parameter.

Smooth/Sparse Phi
-------------
-----------------

* **M-step formula:**

Expand Down Expand Up @@ -41,7 +41,7 @@ Notes:


Smooth/Sparse Theta
-------------
-------------------

* **M-step formula:**

Expand Down Expand Up @@ -75,7 +75,7 @@ Notes:


Decorrelator Phi
-------------
----------------

* **M-step formula:**

Expand All @@ -101,39 +101,39 @@ Notes:


Label Regularization Phi
-------------
------------------------

* **M-step formula:**

``p_wt`` :math:`\propto` ``n_wt`` + ``tau`` * ``dict[w]`` * (``p_wt`` * ``n_t``) / (:math:`\sum_{s \in T}` (``p_ws`` * ``n_s``))


Specified sparse Phi
-------------
--------------------

* **Description:**

It is not a usual regularizer, it's a tool to sparse as many elements in :math:`\Phi`, as you need. You can sparse by columns or by rows.


Improve Coherence Phi
-------------
---------------------

* **M-step formula:**

``p_wt`` :math:`\propto` ``n_wt`` + ``tau`` * :math:`\sum_{v \in W}` ``cooc_dict[w][v]`` * ``n_vt``


Smooth Ptdw
-------------
-----------

* **M-step formula:**

`ToDo(anyap)`


Topic Selection Theta
-------------
---------------------

* **M-step formula:**

Expand All @@ -142,20 +142,20 @@ Topic Selection Theta
where ``topic_value[t]`` = ``n`` / (``n_t`` * ``|T|``)

Biterms Phi
-------------
-----------

* **M-step formula:**

``p_wt`` :math:`\propto` (``n_wt`` + ``tau`` * :math:`\sum_{u \in W}` (``p_tuw``)), :math:`\qquad` where ``p_tuw`` = :math:`\mathrm{norm}_{t \in T}` (``n_t`` * ``p_wt`` * ``p_ut``)


Hierarchy Sparsing Theta
-------------
------------------------

`ToDo(nadiinchi)`


Topic Segmentation Ptdw
-------------
-----------------------

`ToDo(anastasiabayandina)`

0 comments on commit 14d0e2b

Please sign in to comment.