Skip to content

Commit c7d0465

Browse files
authored
MNT doc and whatsnew update pre 0.3 release (#181)
1 parent 882cfae commit c7d0465

File tree

5 files changed

+42
-16
lines changed

5 files changed

+42
-16
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ``skglm``
44

5-
## A fast :zap: and modular :hammer_and_pick: scikit-learn replacement for sparse GLMs
5+
## A fast and modular ⚒️ scikit-learn replacement for sparse GLMs
66

77
</section>
88

@@ -13,9 +13,11 @@
1313
[![PyPI version](https://badge.fury.io/py/skglm.svg)](https://pypi.org/project/skglm/)
1414

1515

16-
``skglm`` is a Python package that offers **fast estimators** for sparse Generalized Linear Models (GLMs) that are **100% compatible with ``scikit-learn``**. It is **highly flexible** and supports a wide range of GLMs. You get to choose from ``skglm``'s already-made estimators or **customize your own** by combining the available datafits and penalty.
16+
``skglm`` is a Python package that offers **fast estimators** for sparse Generalized Linear Models (GLMs) that are **100% compatible with ``scikit-learn``**. It is **highly flexible** and supports a wide range of GLMs.
17+
You get to choose from ``skglm``'s already-made estimators or **customize your own** by combining the available datafits and penalties.
18+
19+
Excited to have a tour on ``skglm`` [documentation](https://contrib.scikit-learn.org/skglm/)?
1720

18-
Excited to have a tour on ``skglm`` [documentation](https://contrib.scikit-learn.org/skglm/) :memo:?
1921

2022
# Why ``skglm``?
2123

@@ -25,10 +27,10 @@ There are several reasons to opt for ``skglm`` among which:
2527

2628
| | |
2729
| ----- | -------------- |
28-
| **Speed** :zap: | Fast solvers able to tackle large datasets, either dense or sparse, with millions of features **up to 100 times faster** than ``scikit-learn``|
29-
| **Modularity** :hammer_and_pick: | User-friendly API than enables **composing custom estimators** with any combination of its existing datafits and penalties |
30-
| **Extensibility** :arrow_up_down: | Flexible design that makes it **simple and easy to implement new datafits and penalties**, a matter of few lines of code
31-
| **Compatibility** :electric_plug: | Estimators **fully compatible with the ``scikit-learn`` API** and drop-in replacements of its GLM estimators
30+
| **Speed** | Fast solvers able to tackle large datasets, either dense or sparse, with millions of features **up to 100 times faster** than ``scikit-learn``|
31+
| **Modularity** | User-friendly API that enables **composing custom estimators** with any combination of its existing datafits and penalties |
32+
| **Extensibility** | Flexible design that makes it **simple and easy to implement new datafits and penalties**, a matter of few lines of code
33+
| **Compatibility** | Estimators **fully compatible with the ``scikit-learn`` API** and drop-in replacements of its GLM estimators
3234
| | |
3335

3436

@@ -70,7 +72,7 @@ print(estimator.score(X, y))
7072
```
7173
You can refer to the documentation to explore the list of ``skglm``'s already-made estimators.
7274

73-
Didn't find one that suits you :monocle_face:, you can still compose your own.
75+
Didn't find one that suits you? you can still compose your own.
7476
Here is a code snippet that fits a MCP-regularized problem with Huber loss.
7577

7678
```python

doc/api.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Penalties
4141
L2
4242
L2_3
4343
MCPenalty
44+
PositiveConstraint
4445
WeightedL1
4546
WeightedGroupL2
4647
SCAD
@@ -93,6 +94,8 @@ Experimental
9394
.. autosummary::
9495
:toctree: generated/
9596

96-
SqrtLasso
97-
PDCD_WS
98-
IterativeReweightedL1
97+
IterativeReweightedL1
98+
PDCD_WS
99+
Pinball
100+
SqrtQuadratic
101+
SqrtLasso

doc/changes/0.3.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.. _changes_0_3:
2+
3+
Version 0.3 (2023/07/01)
4+
------------------------
5+
6+
- Add :ref:`Cox Estimator <skglm.CoxEstimator>` with support of L1, L2, and Elastic regularization (PR: :gh:`171`)
7+
- Reduce time overhead when fitting :ref:`Lasso Estimator <skglm.Lasso>` (PR: :gh:`129`)
8+
- Add :ref:`Cox <skglm.datafits.Cox>` datafit for survival analysis (PR :gh:`180`, :gh:`168`, :gh:`159`, :gh:`157`)
9+
- Experimental :ref:`Pinball <skglm.experimental.Pinball>` datafit (PR: :gh:`134`)
10+
- Add :ref:`Gamma <skglm.datafits.Gamma>` datafit (PR: :gh:`113`)
11+
- Add Positivity constraint to :ref:`L1 <skglm.penalties.L1>`, :ref:`L1_plus_L2 <skglm.penalties.L1_plus_L2>`, :ref:`WeightedL1 <skglm.penalties.WeightedL1>` (PR: :gh:`110`)
12+
- Add :ref:`PositiveConstraint <skglm.penalties.PositiveConstraint>` (PR: :gh:`126`)
13+
- Add :ref:`L-BFGS <skglm.solvers.LBFGS>` solver for problems with smooth datafits and penalties (PR: :gh:`165`, :gh:`173`)
14+
- Experimental :ref:`Primal-dual coordinate descent solve <skglm.experimental.PDCD_WS>` for problems with non-smooth datafits (PR: :gh:`131`)
15+
- Add support of ``float32`` in :ref:`ProxNewton <skglm.solvers.ProxNewton>`
16+

skglm/experimental/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
from .reweighted import IterativeReweightedL1
2-
from .sqrt_lasso import SqrtLasso
2+
from .sqrt_lasso import SqrtLasso, SqrtQuadratic
33
from .pdcd_ws import PDCD_WS
4+
from .quantile_regression import Pinball
45

56
__all__ = [
6-
SqrtLasso,
77
IterativeReweightedL1,
8-
PDCD_WS
8+
PDCD_WS,
9+
Pinball,
10+
SqrtQuadratic,
11+
SqrtLasso,
912
]

skglm/experimental/sqrt_lasso.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212

1313

1414
class SqrtQuadratic(BaseDatafit):
15-
"""Unnormalized square root quadratic datafit.
15+
r"""Unnormalized square root quadratic datafit.
1616
17-
The datafit reads::
17+
The datafit reads:
18+
19+
.. math::
1820
1921
||y - Xw||_2
2022
"""

0 commit comments

Comments
 (0)