Skip to content

Commit dc358ab

Browse files
removed sidebars where unnecessary, cleaned tutorials landing page and fixed links
1 parent 7fed437 commit dc358ab

File tree

6 files changed

+51
-26
lines changed

6 files changed

+51
-26
lines changed

doc/conf.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,19 @@
173173
],
174174
}
175175

176+
# add sidebars if necessary (e.g. if more tutorials are being added)
177+
html_sidebars = {
178+
"index": [],
179+
"getting_started": [],
180+
"tutorials": [],
181+
"tutorials/*": [],
182+
"auto_examples/*": [],
183+
"api": [], # not applied for subpages as it is useful here
184+
"contribute": [],
185+
"changes": [],
186+
"changes/*": []
187+
}
188+
176189
# Enable asciimath parsing in MathJax and configure the HTML renderer to output
177190
# the default asciimath delimiters. Asciimath will not be correctly rendered in
178191
# other output formats, but can likely be fixed using py-asciimath[1] to convert

doc/tutorials/add_datafit.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
:orphan:
2-
31
.. _how_to_add_custom_datafit:
42
.. meta::
53
:description: Tutorial on creating and implementing a custom datafit in skglm. Step-by-step guide includes deriving gradients, Hessians, and an example with Poisson datafit.
64

7-
How to add a custom datafit
5+
How to Add a Custom Datafit
86
~~~~~~~~~~~~~~~~~~~~~~~~~~~
97

108
Motivated by generalized linear models but not limited to it, ``skglm`` solves problems of the form

doc/tutorials/alpha_max.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
:description: Tutorial explaining the critical regularization strength (alpha_max) in skglm. Learn conditions for zero solutions in L1-regularized optimization problems.
55

66
==========================================================
7-
Critical regularization strength above which solution is 0
7+
Critical Regularization Strength above which Solution is 0
88
==========================================================
99

1010
This tutorial shows that for :math:`\lambda \geq \lambda_{\text{max}} = || \nabla f(0) ||_{\infty}`, the solution to

doc/tutorials/intercept.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
.. meta::
44
:description: In-depth guide on intercept handling in skglm solvers. Covers mathematical derivations, gradient updates, Lipschitz constants, and examples for quadratic, logistic, and Huber datafits.
55

6-
Computation of the intercept
6+
Computation of the Intercept
77
============================
88

99
.. currentmodule:: skglm
1010

11-
.. include:: intercept.md
11+
.. include:: intercept2.md
1212
:parser: myst_parser.sphinx_
File renamed without changes.

doc/tutorials/tutorials.rst

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,52 @@
66
=========
77
Tutorials
88
=========
9-
----------------
109

10+
.. grid:: 1 1 2 2
11+
:gutter: 2
1112

12-
:ref:`How to add a custom datafit <how_to_add_custom_datafit>`
13-
--------------------------------------------------------------
13+
.. grid-item-card:: How to Add a Custom Datafit
14+
:link: add_datafit.html
15+
:text-align: left
1416

15-
Learn to add a custom datafit through a hands-on examples: Implementing a Poisson datafit.
17+
Learn to add a custom datafit through a hands-on examples: Implementing a Poisson datafit.
1618

19+
.. grid-item-card:: How to Add a Custom Penalty
20+
:link: add_penalty.html
21+
:text-align: left
1722

18-
:ref:`How to add a custom penalty <how_to_add_custom_penalty>`
19-
--------------------------------------------------------------
23+
Learn to add a custom penalty by implementing the :math:`\ell_1` penalty.
2024

21-
Learn to add a custom penalty by implementing the :math:`\ell_1` penalty.
25+
.. grid-item-card:: Computation of the Intercept
26+
:link: intercept.html
27+
:text-align: left
2228

29+
Explore how ``skglm`` fits an unpenalized intercept.
2330

24-
:ref:`Computation of the intercept <maths_unpenalized_intercept>`
25-
-----------------------------------------------------------------
31+
.. grid-item-card:: Mathematics behind Cox Datafit
32+
:link: cox_datafit.html
33+
:text-align: left
2634

27-
Explore how ``skglm`` fits an unpenalized intercept.
35+
Understand the mathematical foundation of Cox datafit and its applications in survival analysis.
2836

37+
.. grid-item-card:: Details on the Group Lasso
38+
:link: prox_nn_group_lasso.html
39+
:text-align: left
2940

30-
:ref:`Mathematics behind Cox datafit <maths_cox_datafit>`
31-
---------------------------------------------------------
41+
Mathematical details about the group Lasso, in particular with nonnegativity constraints.
3242

33-
Get details about Cox datafit equations.
43+
.. grid-item-card:: Understanding `alpha_max`
44+
:link: alpha_max.html
45+
:text-align: left
3446

35-
:ref:`Details on the group Lasso <prox_nn_group_lasso>`
36-
-------------------------------------------------------
47+
Learn how to choose the regularization strength in :math:`\ell_1`-regularization?
3748

38-
Mathematical details about the group Lasso, in particular with nonnegativity constraints.
49+
.. toctree::
50+
:hidden:
3951

40-
:ref:`Critical regularization strength above which solution is 0 <alpha_max>`
41-
-----------------------------------------------------------------------------
42-
43-
How to choose the regularization strength in L1-regularization?
52+
add_datafit
53+
add_penalty
54+
intercept
55+
cox_datafit
56+
prox_nn_group_lasso
57+
alpha_max

0 commit comments

Comments
 (0)