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

MAINT Update full index #757

Merged
merged 2 commits into from
Dec 1, 2023
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 Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ quizzes:
python build_tools/generate-quizzes.py $(GITLAB_REPO_JUPYTERBOOK_DIR) $(JUPYTER_BOOK_DIR)

full-index:
python build_tools/generate-md-index.py
python build_tools/generate-index.py

$(JUPYTER_BOOK_DIR):
jupyter-book build $(JUPYTER_BOOK_DIR)
Expand Down
10 changes: 8 additions & 2 deletions build_tools/generate-index.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@

from sphinx_external_toc.parsing import parse_toc_yaml

from myst_parser.main import to_tokens
from markdown_it.renderer import RendererHTML

from myst_parser.config.main import MdParserConfig
from myst_parser.parsers.mdit import create_md_parser


# This hard-code the git repo root directory relative to this script
root_dir = Path(__file__).parents[1]


def get_first_title_from_md_str(md_str):
tokens = to_tokens(md_str)
parser = create_md_parser(MdParserConfig(), RendererHTML)
tokens = parser.parse(md_str)

is_title_token = False
for t in tokens:
if is_title_token:
Expand Down
24 changes: 7 additions & 17 deletions full-index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -111,40 +111,30 @@
"### Intuitions on linear models\n",
"\n",
"* [🎥 Intuitions on linear models](https://inria.github.io/scikit-learn-mooc/linear_models/linear_models_slides.html)\n",
"* [✅ Quiz M4.01](https://inria.github.io/scikit-learn-mooc/linear_models/linear_models_quiz_m4_01.html)\n",
"\n",
"### Linear regression\n",
"\n",
"* [Linear regression without scikit-learn](notebooks/linear_regression_without_sklearn.ipynb)\n",
"* [📝 Exercise M4.01](notebooks/linear_models_ex_01.ipynb)\n",
"* [📃 Solution for Exercise M4.01](notebooks/linear_models_sol_01.ipynb)\n",
"* [Linear regression using scikit-learn](notebooks/linear_regression_in_sklearn.ipynb)\n",
"* [✅ Quiz M4.02](https://inria.github.io/scikit-learn-mooc/linear_models/linear_models_quiz_m4_02.html)\n",
"* [Linear models for classification](notebooks/logistic_regression.ipynb)\n",
"* [✅ Quiz M4.01](https://inria.github.io/scikit-learn-mooc/linear_models/linear_models_quiz_m4_01.html)\n",
"\n",
"### Modelling non-linear features-target relationships\n",
"### Non-linear feature engineering for linear models\n",
"\n",
"* [Non-linear feature engineering for Linear Regression](notebooks/linear_regression_non_linear_link.ipynb)\n",
"* [📝 Exercise M4.02](notebooks/linear_models_ex_02.ipynb)\n",
"* [📃 Solution for Exercise M4.02](notebooks/linear_models_sol_02.ipynb)\n",
"* [Linear regression for a non-linear features-target relationship](notebooks/linear_regression_non_linear_link.ipynb)\n",
"* [Non-linear feature engineering for Logistic Regression](notebooks/linear_models_feature_engineering_classification.ipynb)\n",
"* [📝 Exercise M4.03](notebooks/linear_models_ex_03.ipynb)\n",
"* [📃 Solution for Exercise M4.03](notebooks/linear_models_sol_03.ipynb)\n",
"* [✅ Quiz M4.03](https://inria.github.io/scikit-learn-mooc/linear_models/linear_models_quiz_m4_03.html)\n",
"* [✅ Quiz M4.02](https://inria.github.io/scikit-learn-mooc/linear_models/linear_models_quiz_m4_02.html)\n",
"\n",
"### Regularization in linear model\n",
"\n",
"* [🎥 Intuitions on regularized linear models](https://inria.github.io/scikit-learn-mooc/linear_models/regularized_linear_models_slides.html)\n",
"* [Regularization of linear regression model](notebooks/linear_models_regularization.ipynb)\n",
"* [📝 Exercise M4.04](notebooks/linear_models_ex_04.ipynb)\n",
"* [📃 Solution for Exercise M4.04](notebooks/linear_models_sol_04.ipynb)\n",
"* [✅ Quiz M4.04](https://inria.github.io/scikit-learn-mooc/linear_models/linear_models_quiz_m4_04.html)\n",
"\n",
"### Linear model for classification\n",
"\n",
"* [Linear model for classification](notebooks/logistic_regression.ipynb)\n",
"* [📝 Exercise M4.05](notebooks/linear_models_ex_05.ipynb)\n",
"* [📃 Solution for Exercise M4.05](notebooks/linear_models_sol_05.ipynb)\n",
"* [Beyond linear separation in classification](notebooks/logistic_regression_non_linear.ipynb)\n",
"* [✅ Quiz M4.05](https://inria.github.io/scikit-learn-mooc/linear_models/linear_models_quiz_m4_05.html)\n",
"* [✅ Quiz M4.03](https://inria.github.io/scikit-learn-mooc/linear_models/linear_models_quiz_m4_03.html)\n",
"\n",
"[🏁 Wrap-up quiz 4](https://inria.github.io/scikit-learn-mooc/linear_models/linear_models_wrap_up_quiz.html)\n",
"\n",
Expand Down