Skip to content

Commit

Permalink
#3132: model_generate.rst, fix header, use 'code-block'
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff1evesque committed Dec 10, 2017
1 parent c985cbb commit b3f1bd3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions doc/programmatic_interface/model/model_generate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ session. The required attributes, for the corresponding session, is sent to the
**Note:** the content of each of the above examples, can be substituted for
the ``data`` attribute, in a given ``POST`` request:

.. code:: python
.. code-block:: python
import requests
Expand Down Expand Up @@ -51,12 +51,12 @@ The following properties define the above ``data`` attribute:
- ``rbf``
- ``sigmoid``

- ``penalty``: penalty parameter C of the error term, must be a float value:
- ``penalty``: penalty parameter of the error term, must be a float value:

``C=1``
-------
Penalty=1
---------

.. code:: python
.. code-block:: python
# create SVC classifier
svm = SVC(kernel='rbf', random_state=0, gamma=.01, C=1)
Expand All @@ -72,10 +72,10 @@ The following properties define the above ``data`` attribute:
.. image:: https://user-images.githubusercontent.com/2907085/33807641-f6ca9800-dda7-11e7-84d9-137c5283f8b4.png
:alt: svm penalty c=1

``C=10``
--------
Penalty=10
----------

.. code:: python
.. code-block:: python
# create SVC classifier
svm = SVC(kernel='rbf', random_state=0, gamma=.01, C=10)
Expand All @@ -91,10 +91,10 @@ The following properties define the above ``data`` attribute:
.. image:: https://user-images.githubusercontent.com/2907085/33807649-0ecc4296-dda8-11e7-96b3-4eb92c8bb4db.png
:alt: svm penalty c=10

``C=10000``
-----------
Penalty=10000
-------------

.. code:: python
.. code-block:: python
# create SVC classifier
svm = SVC(kernel='rbf', random_state=0, gamma=.01, C=10000)
Expand Down

0 comments on commit b3f1bd3

Please sign in to comment.