Skip to content
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

update baseUrl and fix static images #1217

Merged
merged 13 commits into from
Oct 19, 2021
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
2 changes: 1 addition & 1 deletion core/src/main/python/synapse/README.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Microsoft ML for Apache Spark
Synapse Machine Learning
=============================

This package contains the PySpark library for SynapseML.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ object CodeGen {
|setup(
| name="${conf.name}",
| version="${conf.pythonizedVersion}",
| description="Microsoft ML for Spark",
| long_description="Microsoft ML for Apache Spark contains Microsoft's open source "
| description="Synpase Machine Learning",
| long_description="SynapseML contains Microsoft's open source "
| + "contributions to the Apache Spark ecosystem",
| license="MIT",
| packages=find_namespace_packages(include=['synapse.ml.*']),
Expand Down
4 changes: 2 additions & 2 deletions core/src/test/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
setup(
name="synapsemltest",
version=0.1,
description="Microsoft ML for Spark Tests",
long_description="Microsoft ML for Apache Spark contains Microsoft's open source " +
description="Synapse Machine Learning Tests",
long_description="SynapseML contains Microsoft's open source " +
"contributions to the Apache Spark ecosystem",
license="MIT",
packages=find_packages(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"cell_type": "markdown",
"source": [
"## Automated Snow Leopard Detection with Microsoft ML for Apache Spark\n",
"## Automated Snow Leopard Detection with Synapse Machine Learning\n",
"\n",
"<img src=\"https://mmlspark.blob.core.windows.net/graphics/SnowLeopardAD/SLTrust.PNG\" width=\"900\" style=\"float: left;\"/>"
],
Expand Down
29 changes: 29 additions & 0 deletions pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,35 @@ jobs:
condition: succeededOrFailed()


- job: WebsiteAutoDeployment
cancelTimeoutInMinutes: 0
pool:
vmImage: ubuntu-18.04
steps:
- checkout: self
persistCredentials: true
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- task: AzureKeyVault@1
inputs:
azureSubscription: 'MMLSpark Build'
keyVaultName: mmlspark-keys
- bash: |
yarn install
git config --global user.name "${GH_NAME}"
git config --global user.email "${GH_EMAIL}"
git checkout -b main
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
cd website
yarn && GIT_USER="${GH_NAME}" yarn deploy
env:
GH_NAME: $(gh-name)
GH_EMAIL: $(gh-email)
GH_TOKEN: $(gh-token)
displayName: 'yarn install and build'


- job: UnitTests
cancelTimeoutInMinutes: 1
Expand Down
4 changes: 3 additions & 1 deletion website/docs/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ sidebar_label: Introduction
hide_title: true
---

<div style={{textAlign: 'left'}}><img src="/img/logo.svg" /></div>
import useBaseUrl from "@docusaurus/useBaseUrl";

<div style={{textAlign: 'left'}}><img src={useBaseUrl("/img/logo.svg")} /></div>

# SynapseML

Expand Down
32 changes: 16 additions & 16 deletions website/docs/examples/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ sidebar_label: About
- Create a deep image classifier with transfer learning ([DeepLearning - Flower Image Classification])
- Fit a LightGBM classification or regression model on a biochemical dataset
([LightGBM Overview]), to learn more check out the [LightGBM documentation
page](../features/lightgbm/about).
page](../../features/lightgbm/about).
- Deploy a deep network as a distributed web service with [MMLSpark
Serving](../features/spark_serving/about)
- Use web services in Spark with [HTTP on Apache Spark](../features/http/about)
Serving](../../features/spark_serving/about)
- Use web services in Spark with [HTTP on Apache Spark](../../features/http/about)
- Use Bi-directional LSTMs from Keras for medical entity extraction
([DeepLearning - BiLSTM Medical Entity Extraction])
- Create a text analytics system on Amazon book reviews ([TextAnalytics - Amazon Book Reviews])
Expand All @@ -27,29 +27,29 @@ sidebar_label: About
- Model interpretation ([Interpretability - Tabular SHAP Explainer], [Interpretability - Image Explainers], [Interpretability - Text Explainers])


[Classification - Adult Census]: classification/Classification%20-%20Adult%20Census "Classification - Adult Census"
[Classification - Adult Census]: ../classification/Classification%20-%20Adult%20Census "Classification - Adult Census"

[Regression - Flight Delays]: regression/Regression%20-%20Flight%20Delays "Regression - Flight Delays"
[Regression - Flight Delays]: ../regression/Regression%20-%20Flight%20Delays "Regression - Flight Delays"

[LightGBM Overview]: ../features/lightgbm/LightGBM%20-%20Overview "LightGBM Overview"
[LightGBM Overview]: ../../features/lightgbm/LightGBM%20-%20Overview "LightGBM Overview"

[TextAnalytics - Amazon Book Reviews]: text_analytics/TextAnalytics%20-%20Amazon%20Book%20Reviews "TextAnalytics - Amazon Book Reviews"
[TextAnalytics - Amazon Book Reviews]: ../text_analytics/TextAnalytics%20-%20Amazon%20Book%20Reviews "TextAnalytics - Amazon Book Reviews"

[HyperParameterTuning - Fighting Breast Cancer]: HyperParameterTuning%20-%20Fighting%20Breast%20Cancer "HyperParameterTuning - Fighting Breast Cancer"
[HyperParameterTuning - Fighting Breast Cancer]: ../HyperParameterTuning%20-%20Fighting%20Breast%20Cancer "HyperParameterTuning - Fighting Breast Cancer"

[DeepLearning - CIFAR10 Convolutional Network]: deep_learning/DeepLearning%20-%20CIFAR10%20Convolutional%20Network "DeepLearning - CIFAR10 Convolutional Network"
[DeepLearning - CIFAR10 Convolutional Network]: ../deep_learning/DeepLearning%20-%20CIFAR10%20Convolutional%20Network "DeepLearning - CIFAR10 Convolutional Network"

[OpenCV - Pipeline Image Transformations]: OpenCV%20-%20Pipeline%20Image%20Transformations "OpenCV - Pipeline Image Transformations"
[OpenCV - Pipeline Image Transformations]: ../OpenCV%20-%20Pipeline%20Image%20Transformations "OpenCV - Pipeline Image Transformations"

[DeepLearning - BiLSTM Medical Entity Extraction]: deep_learning/DeepLearning%20-%20BiLSTM%20Medical%20Entity%20Extraction "DeepLearning - BiLSTM Medical Entity Extraction"
[DeepLearning - BiLSTM Medical Entity Extraction]: ../deep_learning/DeepLearning%20-%20BiLSTM%20Medical%20Entity%20Extraction "DeepLearning - BiLSTM Medical Entity Extraction"

[DeepLearning - Flower Image Classification]: deep_learning/DeepLearning%20-%20Flower%20Image%20Classification "DeepLearning - Flower Image Classification"
[DeepLearning - Flower Image Classification]: ../deep_learning/DeepLearning%20-%20Flower%20Image%20Classification "DeepLearning - Flower Image Classification"

[CyberML - Anomalous Access Detection]: CyberML%20-%20Anomalous%20Access%20Detection "CyberML - Anomalous Access Detection"
[CyberML - Anomalous Access Detection]: ../CyberML%20-%20Anomalous%20Access%20Detection "CyberML - Anomalous Access Detection"

[Interpretability - Tabular SHAP Explainer]: model_interpretability/Interpretability%20-%20Tabular%20SHAP%20explainer "Interpretability - Tabular SHAP Explainer"
[Interpretability - Tabular SHAP Explainer]: ../model_interpretability/Interpretability%20-%20Tabular%20SHAP%20explainer "Interpretability - Tabular SHAP Explainer"

[Interpretability - Image Explainers]: model_interpretability/Interpretability%20-%20Image%20Explainers "Interpretability - Image Explainers"
[Interpretability - Image Explainers]: ../model_interpretability/Interpretability%20-%20Image%20Explainers "Interpretability - Image Explainers"

[Interpretability - Text Explainers]: model_interpretability/Interpretability%20-%20Text%20Explainers "Interpretability - Text Explainers"
[Interpretability - Text Explainers]: ../model_interpretability/Interpretability%20-%20Text%20Explainers "Interpretability - Text Explainers"

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: ModelInterpretability - Snow Leopard Detection
hide_title: true
status: stable
---
## Automated Snow Leopard Detection with Microsoft ML for Apache Spark
## Automated Snow Leopard Detection with Synapse Machine Learning

<img src="https://mmlspark.blob.core.windows.net/graphics/SnowLeopardAD/SLTrust.PNG" width="900" />

Expand Down
6 changes: 3 additions & 3 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ let version = "0.9.1";
module.exports = {
title: 'Synapse ML',
tagline: 'Simple and Distributed Machine Learning',
url: 'https://synapseml.github.io',
baseUrl: '/',
url: 'https://microsoft.github.io',
baseUrl: '/SynapseML/',
favicon: 'img/favicon.ico',
organizationName: 'microsoft',
projectName: 'SynapseML',
trailingSlash: false,
trailingSlash: true,
customFields: {
examples: all_examples(),
version: "0.9.1",
Expand Down
22 changes: 18 additions & 4 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,32 @@
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "docusaurus serve"
"serve": "docusaurus serve",
"audit:fix": "npx yarn-audit-fix"
},
"dependencies": {
"@docusaurus/core": "^2.0.0-alpha.48",
"@docusaurus/preset-classic": "^2.0.0-alpha.48",
"@docusaurus/core": "^2.0.0-beta.7",
"@docusaurus/preset-classic": "^2.0.0-beta.7",
"@docusaurus/theme-classic": "^2.0.0-beta.6",
"@docusaurus/theme-search-algolia": "^2.0.0-beta.7",
"classnames": "^2.2.6",
"react": "^16.8.4",
"react-dom": "^16.8.4",
"react-player": "^2.7.2",
"reading-time": "^1.2.0"
"reading-time": "^1.2.0",
"yarn-audit-fix": "^7.1.2",
"ansi-html-community": "^0.0.8"
},
"resolutions": {
"@docusaurus/core/**/set-value": "^4.0.1",
"@docusaurus/**/trim": "^0.0.3",
"@docusaurus/**/glob-parent": "^5.1.2",
"@docusaurus/**/ansi-html-community": "^0.0.8",
"@docusaurus/**/immer": "^9.0.6",
"@docusaurus/**/browserslist": "^4.16.5",
"@docusaurus/**/nth-check": "^2.0.1",
"yarn-audit-fix/**/ansi-regex": "^5.0.1",
"@docusaurus/**/ansi-regex": "^5.0.1"
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function Home() {
</div>
</div>
<div className={classnames("col col--5")}>
<img className={styles.heroImg} src="img/logo.svg" />
<img className={styles.heroImg} src={useBaseUrl("img/logo.svg")} />
</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions website/src/theme/FeatureCards/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";

import Link from "@docusaurus/Link";
import styles from "./styles.module.css";
import useBaseUrl from "@docusaurus/useBaseUrl";

const features = [
{
Expand Down Expand Up @@ -67,7 +67,6 @@ const features = [
];

function FeatureCards() {
features.forEach;

return (
features &&
Expand All @@ -82,12 +81,13 @@ function FeatureCards() {
}

function FeatureCard({ src, title, body, footer, burl }) {
const srcUrl = useBaseUrl(src)
return (
<div class={styles.feature_card}>
<div class={styles.card}>
<div class={styles.card__image}>
<img
src={src}
src={srcUrl}
alt="Image alt text"
title="Logo Title Text 1"
height="200"
Expand Down
Binary file removed website/static/img/notebooks/SLPipeline.png
Binary file not shown.
Binary file removed website/static/img/notebooks/SLTrust.png
Binary file not shown.
Binary file removed website/static/img/notebooks/bankruptcy_image.png
Binary file not shown.
Binary file removed website/static/img/notebooks/bookstore-photo.jpg
Binary file not shown.
Binary file removed website/static/img/notebooks/cog_services.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed website/static/img/notebooks/cog_services_step_4.jpg
Binary file not shown.
Binary file not shown.
Binary file removed website/static/img/notebooks/dog.jpg
Binary file not shown.
Binary file removed website/static/img/notebooks/drug.png
Binary file not shown.
Binary file removed website/static/img/notebooks/full_pipe_2.jpg
Binary file not shown.
Binary file removed website/static/img/notebooks/heart-disease.png
Binary file not shown.
Binary file removed website/static/img/notebooks/image-lime.png
Binary file not shown.
Binary file removed website/static/img/notebooks/image-shap.png
Binary file not shown.
Binary file removed website/static/img/notebooks/lime_results.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed website/static/img/notebooks/tabular-shap.png
Binary file not shown.
Binary file not shown.
4 changes: 3 additions & 1 deletion website/versioned_docs/version-0.9.1/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ sidebar_label: Introduction
hide_title: true
---

<div style={{textAlign: 'left'}}><img src="/img/logo.svg" /></div>
import useBaseUrl from "@docusaurus/useBaseUrl";

<div style={{textAlign: 'left'}}><img src={useBaseUrl("/img/logo.svg")} /></div>

# SynapseML

Expand Down
32 changes: 16 additions & 16 deletions website/versioned_docs/version-0.9.1/examples/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ sidebar_label: About
- Create a deep image classifier with transfer learning ([DeepLearning - Flower Image Classification])
- Fit a LightGBM classification or regression model on a biochemical dataset
([LightGBM Overview]), to learn more check out the [LightGBM documentation
page](../features/lightgbm/about).
page](../../features/lightgbm/about).
- Deploy a deep network as a distributed web service with [MMLSpark
Serving](../features/spark_serving/about)
- Use web services in Spark with [HTTP on Apache Spark](../features/http/about)
Serving](../../features/spark_serving/about)
- Use web services in Spark with [HTTP on Apache Spark](../../features/http/about)
- Use Bi-directional LSTMs from Keras for medical entity extraction
([DeepLearning - BiLSTM Medical Entity Extraction])
- Create a text analytics system on Amazon book reviews ([TextAnalytics - Amazon Book Reviews])
Expand All @@ -27,29 +27,29 @@ sidebar_label: About
- Model interpretation ([Interpretability - Tabular SHAP Explainer], [Interpretability - Image Explainers], [Interpretability - Text Explainers])


[Classification - Adult Census]: classification/Classification%20-%20Adult%20Census "Classification - Adult Census"
[Classification - Adult Census]: ../classification/Classification%20-%20Adult%20Census "Classification - Adult Census"

[Regression - Flight Delays]: regression/Regression%20-%20Flight%20Delays "Regression - Flight Delays"
[Regression - Flight Delays]: ../regression/Regression%20-%20Flight%20Delays "Regression - Flight Delays"

[LightGBM Overview]: ../features/lightgbm/LightGBM%20-%20Overview "LightGBM Overview"
[LightGBM Overview]: ../../features/lightgbm/LightGBM%20-%20Overview "LightGBM Overview"

[TextAnalytics - Amazon Book Reviews]: text_analytics/TextAnalytics%20-%20Amazon%20Book%20Reviews "TextAnalytics - Amazon Book Reviews"
[TextAnalytics - Amazon Book Reviews]: ../text_analytics/TextAnalytics%20-%20Amazon%20Book%20Reviews "TextAnalytics - Amazon Book Reviews"

[HyperParameterTuning - Fighting Breast Cancer]: HyperParameterTuning%20-%20Fighting%20Breast%20Cancer "HyperParameterTuning - Fighting Breast Cancer"
[HyperParameterTuning - Fighting Breast Cancer]: ../HyperParameterTuning%20-%20Fighting%20Breast%20Cancer "HyperParameterTuning - Fighting Breast Cancer"

[DeepLearning - CIFAR10 Convolutional Network]: deep_learning/DeepLearning%20-%20CIFAR10%20Convolutional%20Network "DeepLearning - CIFAR10 Convolutional Network"
[DeepLearning - CIFAR10 Convolutional Network]: ../deep_learning/DeepLearning%20-%20CIFAR10%20Convolutional%20Network "DeepLearning - CIFAR10 Convolutional Network"

[OpenCV - Pipeline Image Transformations]: OpenCV%20-%20Pipeline%20Image%20Transformations "OpenCV - Pipeline Image Transformations"
[OpenCV - Pipeline Image Transformations]: ../OpenCV%20-%20Pipeline%20Image%20Transformations "OpenCV - Pipeline Image Transformations"

[DeepLearning - BiLSTM Medical Entity Extraction]: deep_learning/DeepLearning%20-%20BiLSTM%20Medical%20Entity%20Extraction "DeepLearning - BiLSTM Medical Entity Extraction"
[DeepLearning - BiLSTM Medical Entity Extraction]: ../deep_learning/DeepLearning%20-%20BiLSTM%20Medical%20Entity%20Extraction "DeepLearning - BiLSTM Medical Entity Extraction"

[DeepLearning - Flower Image Classification]: deep_learning/DeepLearning%20-%20Flower%20Image%20Classification "DeepLearning - Flower Image Classification"
[DeepLearning - Flower Image Classification]: ../deep_learning/DeepLearning%20-%20Flower%20Image%20Classification "DeepLearning - Flower Image Classification"

[CyberML - Anomalous Access Detection]: CyberML%20-%20Anomalous%20Access%20Detection "CyberML - Anomalous Access Detection"
[CyberML - Anomalous Access Detection]: ../CyberML%20-%20Anomalous%20Access%20Detection "CyberML - Anomalous Access Detection"

[Interpretability - Tabular SHAP Explainer]: model_interpretability/Interpretability%20-%20Tabular%20SHAP%20explainer "Interpretability - Tabular SHAP Explainer"
[Interpretability - Tabular SHAP Explainer]: ../model_interpretability/Interpretability%20-%20Tabular%20SHAP%20explainer "Interpretability - Tabular SHAP Explainer"

[Interpretability - Image Explainers]: model_interpretability/Interpretability%20-%20Image%20Explainers "Interpretability - Image Explainers"
[Interpretability - Image Explainers]: ../model_interpretability/Interpretability%20-%20Image%20Explainers "Interpretability - Image Explainers"

[Interpretability - Text Explainers]: model_interpretability/Interpretability%20-%20Text%20Explainers "Interpretability - Text Explainers"
[Interpretability - Text Explainers]: ../model_interpretability/Interpretability%20-%20Text%20Explainers "Interpretability - Text Explainers"

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: ModelInterpretability - Snow Leopard Detection
hide_title: true
status: stable
---
## Automated Snow Leopard Detection with Microsoft ML for Apache Spark
## Automated Snow Leopard Detection with Synapse Machine Learning

<img src="https://mmlspark.blob.core.windows.net/graphics/SnowLeopardAD/SLTrust.PNG" width="900" />

Expand Down
Loading