Skip to content

Commit d33d7c6

Browse files
committed
Merge branch 'source-design-merge' of https://github.com/plotly/documentation into source-design-merge
2 parents 56fef70 + 974f11d commit d33d7c6

10 files changed

+2636
-0
lines changed

_includes/documentation_eg.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@
8787
{% assign semi_supervised = true %}
8888
{% elsif page.display_as == "vector_machines" %}
8989
{% assign vector_machines = true %}
90+
{% elsif page.display_as == "decision_trees" %}
91+
{% assign decision_trees = true %}
9092
<!-- END OF SCIKIT CUSTOM LAYOUT -->
9193

9294
<!-- START OF NUMPY CUSTOM LAYOUT -->
@@ -1782,6 +1784,41 @@ <h4 class="example-section-title" id="layout-options">
17821784

17831785
{% endif %}
17841786

1787+
<!-- DECISION TREES -->
1788+
{% if decision_trees %}
1789+
<section class="--tutorial-section">
1790+
<header class="--section-header"><a href="#decision_trees " id="decision_trees">Decision Trees</a>
1791+
<div class="icon copy" data-tooltip="Click to copy direct link.">
1792+
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
1793+
<path fill="#000000"
1794+
d="M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z"/>
1795+
</svg>
1796+
</div>
1797+
</header>
1798+
<section class="--grid">
1799+
<ul class="--grid-list">
1800+
{% for page in languagelistimg %}
1801+
{% if page.display_as == "decision_trees" %}
1802+
<li style="background-image: url({{site.imgurl}}{{page.thumbnail}});" class="--grid-item">
1803+
<a href="{% if page.permalink contains 'http' %}{{page.permalink}}{% else %}/{{page.permalink}}{% endif %}">
1804+
<div class="--item-meta"><span>{{page.name}}</span></div>
1805+
<div class="--item-image">
1806+
<span>View Tutorial</span>
1807+
<img src="{{site.imgurl}}{{page.thumbnail}}" alt="{{page.name}}">
1808+
</div>
1809+
</a>
1810+
1811+
</li>
1812+
1813+
{% endif %}
1814+
{% endfor %}
1815+
</ul>
1816+
</section>
1817+
</section>
1818+
1819+
{% endif %}
1820+
<!-- TEXT DOCUMENTS -->
1821+
17851822
{% if text_documents %}
17861823
<section class="--tutorial-section no-image" id="text_documents">
17871824
<header class="--section-header"><a href="#text_documents">Working with Text Documents</a>

_includes/side-bar.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
{% assign vector_machines = true %}
129129
{% elsif page.display_as == "text_documents" %}
130130
{% assign text_documents = true %}
131+
{% elsif page.display_as == "decision_trees" %}
132+
{% assign decision_trees = true %}
131133
<!-- END OF SCIKIT CUSTOM LAYOUT -->
132134
{% endif %}
133135
{% endfor %}
@@ -525,6 +527,12 @@
525527
</li>
526528
{% endif %}
527529

530+
{% if decision_trees == true %}
531+
<li class="--sidebar-item">
532+
<a href="#decision_trees" class="js-splash--navigation-item">Decision Trees</a>
533+
</li>
534+
{% endif %}
535+
528536
{% if text_documents == true %}
529537
<li class="--sidebar-item">
530538
<a href="#text_documents" class="js-splash--navigation-item">Working with Text Documents</a>

_posts/scikit/decision-surface-of-decision-tree/2015-06-30-Decision Surface of a Decision Tree on the Iris Dataset.html

Lines changed: 302 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)