Skip to content

Commit

Permalink
[skip travis] Fixing TOC in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerce committed May 26, 2020
1 parent eb54c7b commit 9310f2a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
45 changes: 23 additions & 22 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
.. toctree::

index
ml_resources
creating_resources
101_model
101_ensemble
101_deepnet
101_linear_regression
101_logistic_regression
101_fusion
101_ts
101_optiml
101_cluster
101_anomaly
101_topic_model
101_association
reading_resources
updating_resources
deleting_resources
local_resources
whizzml_resources
:hidden:

ml_resources
creating_resources
101_model
101_ensemble
101_deepnet
101_linear_regression
101_logistic_regression
101_fusion
101_ts
101_optiml
101_cluster
101_anomaly
101_topic_model
101_association
101_scripting
reading_resources
updating_resources
deleting_resources
local_resources
whizzml_resources


BigML Python Bindings
Expand Down Expand Up @@ -787,7 +788,7 @@ To use external data connectors:
- ``BIGML_EXTERNAL_CONN_PWD``: Database user password
- ``BIGML_EXTERNAL_CONN_SOURCE``: Type of database: ``mysql``, ``postgresql``,
``elasticsearch``, etc. (see details in the
`API documentation <https://bigml.com/api/externalconnectors>`_)
`API documentation for external connectors <https://bigml.com/api/externalconnectors>`_)

Running the Tests
-----------------
Expand Down
9 changes: 5 additions & 4 deletions docs/local_resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ properties use the ``full=True`` argument:
.. code-block:: python
local_model.predict({"petal length": 3, "petal width": 1}, full=True)
that will return:

.. code-block:: python
Expand Down Expand Up @@ -366,7 +367,7 @@ the ``cast_prediction`` function:
unused_fields=False):
whose first argument is the prediction obtained with the ``full=True``
argument, the second one defines the type of output (``None```to obtain
argument, the second one defines the type of output (``None`` to obtain
the prediction output only, "list" or "dict") and the rest of booleans
cause the corresponding property to be included or not.

Expand Down Expand Up @@ -709,7 +710,7 @@ an input data set:
As you can see, the prediction contains the predicted category and the
associated probability. It also shows the distribution of probabilities for
all the possible categories in the objective field. If you only need the
predicted value, you can remove the ``full``argument.
predicted value, you can remove the ``full`` argument.

You must keep in mind, though, that to obtain a logistic regression
prediction, input data
Expand Down Expand Up @@ -752,7 +753,6 @@ and an example of it would be:
"threshold": 0.8}
local_logistic.predict(inputData, operating_point=operating_point)
You can check the
`Operating point's predictions <#operating-point's-predictions>`_ section
to learn about
Expand All @@ -763,7 +763,7 @@ prediction to be the positive class.
Local Logistic Regression
-------------------------

You can also instantiate a local version of a remote logistic regression.
You can also instantiate a local version of a remote logistic regression:

.. code-block:: python
Expand Down Expand Up @@ -1897,6 +1897,7 @@ instantiate the corresponding local object, so that you can use its
``predict`` method to produce local predictions:
.. code-block:: python
from bigml.supervised import SupervisedModel
local_supervised_1 = SupervisedModel( \
"logisticregression/5143a51a37203f2cf7020351")
Expand Down

0 comments on commit 9310f2a

Please sign in to comment.