From f710dbc7fa05b58e8240391bf141c84b50a81361 Mon Sep 17 00:00:00 2001 From: Shreyash Gupta Date: Wed, 20 Nov 2024 12:58:15 -0600 Subject: [PATCH] Fixed all chapters and module errors when deploying. The chapter names were renamed, and then the config file was redone along with the README file to fix the deployment issues. --- .github/workflows/deploy.yml | 5 +++- _config.yml | 12 +++++++++- _toc.yml | 20 +++++++--------- chapters/Chapter 2 - Data Fundamentals.ipynb | 24 +++++++++++++++++++ chapters/Chapter 2: Data Fundamentals.ipynb | 10 -------- .../Chapter 3 - Supervised Learning.ipynb | 19 +++++++++++++++ chapters/Chapter 3: Supervised Learning.ipynb | 10 -------- .../Chapter 4 - Unsupervised Learning.ipynb | 19 +++++++++++++++ .../Chapter 4: Unsupervised Learning.ipynb | 10 -------- ... Chapter 5 - Neural Networks Basics.ipynb} | 4 ++-- .../Chapter 6 - Deep Learning Tools.ipynb | 19 +++++++++++++++ chapters/Chapter 6: Deep Learning Tools.ipynb | 10 -------- ...er 7 - Convolutional Neural Networks.ipynb | 19 +++++++++++++++ ...ter 7: Convolutional Neural Networks.ipynb | 10 -------- ...Chapter 8 - Sequential Data and RNNs.ipynb | 19 +++++++++++++++ .../Chapter 8: Sequential Data and RNNs.ipynb | 10 -------- .../Chapter 9 - Modern Deep Learning.ipynb | 24 +++++++++++++++++++ .../Chapter 9: Modern Deep Learning.ipynb | 10 -------- requirements.txt | 7 ++++-- 19 files changed, 174 insertions(+), 87 deletions(-) create mode 100644 chapters/Chapter 2 - Data Fundamentals.ipynb delete mode 100644 chapters/Chapter 2: Data Fundamentals.ipynb create mode 100644 chapters/Chapter 3 - Supervised Learning.ipynb delete mode 100644 chapters/Chapter 3: Supervised Learning.ipynb create mode 100644 chapters/Chapter 4 - Unsupervised Learning.ipynb delete mode 100644 chapters/Chapter 4: Unsupervised Learning.ipynb rename chapters/{Chapter 5: Neural Networks Basics.ipynb => Chapter 5 - Neural Networks Basics.ipynb} (99%) create mode 100644 chapters/Chapter 6 - Deep Learning Tools.ipynb delete mode 100644 chapters/Chapter 6: Deep Learning Tools.ipynb create mode 100644 chapters/Chapter 7 - Convolutional Neural Networks.ipynb delete mode 100644 chapters/Chapter 7: Convolutional Neural Networks.ipynb create mode 100644 chapters/Chapter 8 - Sequential Data and RNNs.ipynb delete mode 100644 chapters/Chapter 8: Sequential Data and RNNs.ipynb create mode 100644 chapters/Chapter 9 - Modern Deep Learning.ipynb delete mode 100644 chapters/Chapter 9: Modern Deep Learning.ipynb diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5ea0266..c639b9d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -38,7 +38,10 @@ jobs: - name: Build the book run: | - jupyter-book build . + ls -la chapters/ + jupyter-book config sphinx . + jupyter-book build . --verbose 2>&1 | tee build.log + cat build.log - name: Setup Pages uses: actions/configure-pages@v4 diff --git a/_config.yml b/_config.yml index 074a652..e1f19aa 100644 --- a/_config.yml +++ b/_config.yml @@ -21,7 +21,16 @@ html: home_page_in_navbar: true baseurl: /Machine-Learning-for-Dummies -# Important: Add these build settings +parse: + myst_enable_extensions: + - html_image + - html_admonition + - colon_fence + - deflist + - dollarmath + - linkify + - substitution + sphinx: config: html_theme: sphinx_book_theme @@ -31,6 +40,7 @@ sphinx: repository_url: https://github.com/shreyashguptas/Machine-Learning-for-Dummies repository_branch: main use_repository_button: true + nb_execution_show_tb: True repository: url: https://github.com/shreyashguptas/Machine-Learning-for-Dummies diff --git a/_toc.yml b/_toc.yml index d62a6ea..ba44cf2 100644 --- a/_toc.yml +++ b/_toc.yml @@ -4,26 +4,24 @@ parts: - caption: Foundations of Machine Learning chapters: - file: chapters/Chapter 1 - Introduction to Machine Learning - title: "Chapter 1 - Introduction to Machine Learning" + title: Chapter 1 - Introduction to Machine Learning - file: chapters/Chapter 2 - Data Fundamentals - title: "Chapter 2 - Data Fundamentals" + title: Chapter 2 - Data Fundamentals - file: chapters/Chapter 3 - Supervised Learning - title: "Chapter 3 - Supervised Learning" + title: Chapter 3 - Supervised Learning - file: chapters/Chapter 4 - Unsupervised Learning - title: "Chapter 4 - Unsupervised Learning" + title: Chapter 4 - Unsupervised Learning - caption: Deep Learning Fundamentals chapters: - file: chapters/Chapter 5 - Neural Networks Basics - title: "Chapter 5 - Neural Networks Basics" + title: Chapter 5 - Neural Networks Basics - file: chapters/Chapter 6 - Deep Learning Tools - title: "Chapter 6 - Deep Learning Tools" + title: Chapter 6 - Deep Learning Tools - caption: Advanced Deep Learning chapters: - file: chapters/Chapter 7 - Convolutional Neural Networks - title: "Chapter 7 - Convolutional Neural Networks" + title: Chapter 7 - Convolutional Neural Networks - file: chapters/Chapter 8 - Sequential Data and RNNs - title: "Chapter 8 - Sequential Data and RNNs" + title: Chapter 8 - Sequential Data and RNNs - file: chapters/Chapter 9 - Modern Deep Learning - title: "Chapter 9 - Modern Deep Learning" - - file: chapters/Chapter x - Introduction to Deep Learning - title: "Chapter x - Introduction to Deep Learning" \ No newline at end of file + title: Chapter 9 - Modern Deep Learning \ No newline at end of file diff --git a/chapters/Chapter 2 - Data Fundamentals.ipynb b/chapters/Chapter 2 - Data Fundamentals.ipynb new file mode 100644 index 0000000..bb4e725 --- /dev/null +++ b/chapters/Chapter 2 - Data Fundamentals.ipynb @@ -0,0 +1,24 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 2 - Data Fundamentals \n", + "---" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [] + } + ], + "metadata": { + "language_info": { + "name": "python" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/chapters/Chapter 2: Data Fundamentals.ipynb b/chapters/Chapter 2: Data Fundamentals.ipynb deleted file mode 100644 index c55a287..0000000 --- a/chapters/Chapter 2: Data Fundamentals.ipynb +++ /dev/null @@ -1,10 +0,0 @@ -{ - "cells": [], - "metadata": { - "language_info": { - "name": "python" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/chapters/Chapter 3 - Supervised Learning.ipynb b/chapters/Chapter 3 - Supervised Learning.ipynb new file mode 100644 index 0000000..2a2c108 --- /dev/null +++ b/chapters/Chapter 3 - Supervised Learning.ipynb @@ -0,0 +1,19 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 3 - Supervised Learning \n", + "---" + ] + } + ], + "metadata": { + "language_info": { + "name": "python" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/chapters/Chapter 3: Supervised Learning.ipynb b/chapters/Chapter 3: Supervised Learning.ipynb deleted file mode 100644 index c55a287..0000000 --- a/chapters/Chapter 3: Supervised Learning.ipynb +++ /dev/null @@ -1,10 +0,0 @@ -{ - "cells": [], - "metadata": { - "language_info": { - "name": "python" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/chapters/Chapter 4 - Unsupervised Learning.ipynb b/chapters/Chapter 4 - Unsupervised Learning.ipynb new file mode 100644 index 0000000..9c47c2a --- /dev/null +++ b/chapters/Chapter 4 - Unsupervised Learning.ipynb @@ -0,0 +1,19 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 4 - Unsupervised Learning \n", + "---" + ] + } + ], + "metadata": { + "language_info": { + "name": "python" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/chapters/Chapter 4: Unsupervised Learning.ipynb b/chapters/Chapter 4: Unsupervised Learning.ipynb deleted file mode 100644 index c55a287..0000000 --- a/chapters/Chapter 4: Unsupervised Learning.ipynb +++ /dev/null @@ -1,10 +0,0 @@ -{ - "cells": [], - "metadata": { - "language_info": { - "name": "python" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/chapters/Chapter 5: Neural Networks Basics.ipynb b/chapters/Chapter 5 - Neural Networks Basics.ipynb similarity index 99% rename from chapters/Chapter 5: Neural Networks Basics.ipynb rename to chapters/Chapter 5 - Neural Networks Basics.ipynb index 6a08e25..7695c03 100644 --- a/chapters/Chapter 5: Neural Networks Basics.ipynb +++ b/chapters/Chapter 5 - Neural Networks Basics.ipynb @@ -11,8 +11,8 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# DeepLearning Course\n", - "----" + "# Chapter 5 - Neural Networks Basics \n", + "---" ] }, { diff --git a/chapters/Chapter 6 - Deep Learning Tools.ipynb b/chapters/Chapter 6 - Deep Learning Tools.ipynb new file mode 100644 index 0000000..93ca58e --- /dev/null +++ b/chapters/Chapter 6 - Deep Learning Tools.ipynb @@ -0,0 +1,19 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 6 - Deep Learning Tools \n", + "---" + ] + } + ], + "metadata": { + "language_info": { + "name": "python" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/chapters/Chapter 6: Deep Learning Tools.ipynb b/chapters/Chapter 6: Deep Learning Tools.ipynb deleted file mode 100644 index c55a287..0000000 --- a/chapters/Chapter 6: Deep Learning Tools.ipynb +++ /dev/null @@ -1,10 +0,0 @@ -{ - "cells": [], - "metadata": { - "language_info": { - "name": "python" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/chapters/Chapter 7 - Convolutional Neural Networks.ipynb b/chapters/Chapter 7 - Convolutional Neural Networks.ipynb new file mode 100644 index 0000000..3d5fc63 --- /dev/null +++ b/chapters/Chapter 7 - Convolutional Neural Networks.ipynb @@ -0,0 +1,19 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 7 - Convolutional Neural Networks \n", + "---" + ] + } + ], + "metadata": { + "language_info": { + "name": "python" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/chapters/Chapter 7: Convolutional Neural Networks.ipynb b/chapters/Chapter 7: Convolutional Neural Networks.ipynb deleted file mode 100644 index c55a287..0000000 --- a/chapters/Chapter 7: Convolutional Neural Networks.ipynb +++ /dev/null @@ -1,10 +0,0 @@ -{ - "cells": [], - "metadata": { - "language_info": { - "name": "python" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/chapters/Chapter 8 - Sequential Data and RNNs.ipynb b/chapters/Chapter 8 - Sequential Data and RNNs.ipynb new file mode 100644 index 0000000..fc5e062 --- /dev/null +++ b/chapters/Chapter 8 - Sequential Data and RNNs.ipynb @@ -0,0 +1,19 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 8 - Sequential Data and RNNs \n", + "---" + ] + } + ], + "metadata": { + "language_info": { + "name": "python" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/chapters/Chapter 8: Sequential Data and RNNs.ipynb b/chapters/Chapter 8: Sequential Data and RNNs.ipynb deleted file mode 100644 index c55a287..0000000 --- a/chapters/Chapter 8: Sequential Data and RNNs.ipynb +++ /dev/null @@ -1,10 +0,0 @@ -{ - "cells": [], - "metadata": { - "language_info": { - "name": "python" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/chapters/Chapter 9 - Modern Deep Learning.ipynb b/chapters/Chapter 9 - Modern Deep Learning.ipynb new file mode 100644 index 0000000..3ef2dc9 --- /dev/null +++ b/chapters/Chapter 9 - Modern Deep Learning.ipynb @@ -0,0 +1,24 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 9 - Modern Deep Learning \n", + "---" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [] + } + ], + "metadata": { + "language_info": { + "name": "python" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/chapters/Chapter 9: Modern Deep Learning.ipynb b/chapters/Chapter 9: Modern Deep Learning.ipynb deleted file mode 100644 index c55a287..0000000 --- a/chapters/Chapter 9: Modern Deep Learning.ipynb +++ /dev/null @@ -1,10 +0,0 @@ -{ - "cells": [], - "metadata": { - "language_info": { - "name": "python" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/requirements.txt b/requirements.txt index 6c8a736..cb77393 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,9 @@ jupyter-book>=0.13.0 ghp-import sphinx>=4.0 -jupyter-book sphinx-book-theme -myst-nb \ No newline at end of file +myst-nb +myst-parser +nbformat +nbconvert +linkify-it-py \ No newline at end of file