Skip to content

add ai/ml section #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions _data/display_as.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ basic:
statistical:
reference: '#statistical-charts'
text: Statistical
ai_ml:
reference: '#ai-ml'
text: Artificial Intelligence and Machine Learning
scientific:
reference: '#scientific-charts'
text: Scientific
Expand Down
3 changes: 3 additions & 0 deletions _data/display_as_py_r_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ basic:
statistical:
reference: 'statistical-charts'
text: Statistical Charts
ai_ml:
reference: '#ai-ml'
text: Artificial Intelligence and Machine Learning
scientific:
reference: 'scientific-charts'
text: Scientific Charts
Expand Down
8 changes: 8 additions & 0 deletions _includes/layouts/side-bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
{% assign financial = true %}
{% elsif page.display_as == "3d_charts" %}
{% assign 3d_charts = true %}
{% elsif page.display_as == "ai_ml" %}
{% assign ai_ml = true %}
{% elsif page.display_as == "advanced_charts"%}
{% assign advanced_charts = true %}
{% elsif page.display_as == "multiple_axes" %}
Expand Down Expand Up @@ -259,6 +261,12 @@
</li>
{% endif %}

{% if ai_ml == true %}
<li class="--sidebar-item">
<a href="/{{langue}}/ai-ml/" class="js-splash--navigation-item">Artificial Intelligence and Machine Learning</a>
</li>
{% endif %}

{% if scientific == true %}
<li class="--sidebar-item">
<a href="/{{langue}}/scientific-charts/" class="js-splash--navigation-item">Scientific Charts</a>
Expand Down
33 changes: 30 additions & 3 deletions _includes/posts/documentation_eg.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
{% assign chart_studio = true %}
{% elsif page.display_as == "advanced_opt" %}
{% assign advanced_opt = true %}
{% elsif page.display_as == "ai_ml" %}
{% assign ai_ml = true %}

<!-- START OF GGPLOT CUSTOM LAYOUT -->
{% elsif page.display_as == "aesthetics" %}
Expand Down Expand Up @@ -96,15 +98,40 @@
{% if show_header %}
<a href="#fundamentals" name="fundamentals" id="fundamentals">Fundamentals</a>
{% endif %}

</header>
<section class="--grid">
<ul class="--grid-list">
{%- for page in languagelist -%}
{% if page.display_as == "file_settings" %}

{% include layouts/grid-item.html %}



{% endif %}
{%- endfor -%}
</ul>
</section>
</section>
{% endif %}

{% if ai_ml %}
<section class="--tutorial-section" id="ai_ml">
<header class="--section-header">
{% if show_header %}

<a href="#ai_ml">Artificial Intelligence and Machine Learning</a>

{% endif %}

</header>
<section class="--grid">
<ul class="--grid-list">
{%- for page in languagelist -%}
{% if page.display_as == "ai_ml" %}

{% include layouts/grid-item.html %}


{% endif %}
{%- endfor -%}
Expand Down Expand Up @@ -876,4 +903,4 @@ <h4 class="example-section-title" id="layout-options">

{% if page.language == "matlab" %}
<p><em>MATLAB is a registered trademark of The MathWorks, Inc.</em></p>
{% endif %}
{% endif %}
24 changes: 24 additions & 0 deletions _includes/posts/mainlang_documentation_eg.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
{% assign chart_studio = true %}
{% elsif page.display_as == "advanced_opt" %}
{% assign advanced_opt = true %}
{% elsif page.display_as == "ai_ml" %}
{% assign ai_ml = true %}

{% endif %}
{%- endfor -%}
Expand Down Expand Up @@ -78,6 +80,28 @@
</section>
{% endif %}



{% if ai_ml %}
<section class="--tutorial-section">
<header class="--section-header"><a href="#ai_ml" name="ai_ml" id="ai_ml">Artificial Intelligence and Machine Learning</a>
<a href="/{{language}}/ai-ml/" class="langindexlink">More AI and ML &raquo;</a>
</header>
<section class="--grid">
<ul class="--grid-list">
{%- for page in languagelist -%}
{% if page.display_as == "ai_ml" and page.order < num_examples %}


{% include layouts/grid-item.html %}
{% endif %}
{%- endfor -%}
</ul>
<a href="/{{language}}/ai-ml/" class="langindexlink-mobile">More AI and ML &raquo;</a>
</section>
</section>
{% endif %}

{% if chart_type %}
<section class="--tutorial-section">
<header class="--section-header"><a href="#basic-charts" id="basic-charts">Basic Charts</a>
Expand Down
2 changes: 1 addition & 1 deletion _posts/plotly_js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ order: 5
{% assign examples = site.posts | where:"language","plotly_js" | where:"suite","add-chart-type-or-topic"| sort: "order" %}
{% include posts/auto_examples.html examples=examples %}
```
- Make sure to update `_includes/posts/documentation_eg.html` with the new chart type!
- Make sure to update `_includes/posts/documentation_eg.html`, `_includes/layouts/side-bar.html`, and `_data/display_as_py_r_js.yml` and the CI python scripts with the new chart type!

- Index pages for chart categories must have `order: 5`.

Expand Down
27 changes: 27 additions & 0 deletions _posts/python/2020-02-23-ai-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
permalink: python/ai-ml/
description: Plotly's Python graphing library makes interactive, publication-quality graphs online. Examples of how to make charts related to artificial intelligence and machine learning.
name: AI and ML Charts
layout: langindex
language: python
display_as: ai_ml
thumbnail: thumbnail/mixed.jpg
page_type: example_index
---


<header class="--welcome">
<div class="--welcome-body">
<!--div.--wrap-inner-->
<div class="--title">
<div class="--body">
<h1>Plotly Python Open Source Graphing Library Artificial Intelligence and Machine Learning Charts</h1>
<p>{{page.description}}</p>
</div>
</div>
</div>
</header>


{% assign languagelist = site.posts | where: "language","python" | where: "display_as","ai_ml" | where: "layout","base" | sort: "order" %}
{% include posts/documentation_eg.html %}
2 changes: 1 addition & 1 deletion check-or-enforce-order.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
if sys.argv[2] == 'enforce':
enforce = True

categories = ["file_settings", "basic", "financial", "statistical", "scientific", "maps", "3d_charts", "multiple_axes"]
categories = ["file_settings", "basic", "financial", "statistical", "scientific", "maps", "3d_charts", "multiple_axes", "ai_ml"]

def get_post(path):
return fm.load(str(path))
Expand Down
1 change: 1 addition & 0 deletions front-matter-ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def check_noTrailingSlash(meta_to_check):
"maps",
"3d_charts",
"multiple_axes",
"ai_ml"
]
languages = ["python", "python/v3", "plotly_js", "r"]

Expand Down