Skip to content

Commit

Permalink
MAINT Update full index (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesteve authored Dec 1, 2023
1 parent 80ecf2e commit fa8225c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
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

0 comments on commit fa8225c

Please sign in to comment.