Skip to content

Commit 7140a33

Browse files
authored
minor doc improvements (#137)
1 parent a41ee42 commit 7140a33

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@
77
This is a package gathering functionalities to solve a number of generalised linear regression/classification problems which, inherently, correspond to an optimisation problem of the form
88

99
```
10-
L(y, ) + P(θ)
10+
L(y, X*θ) + P(θ)
1111
```
1212

13-
where `L` is a loss function and `P` is a penalty function (both of those can be scaled or composed).
13+
where:
14+
15+
- `L` is a loss function
16+
- `X` is the `n` x `p` matrix of training observations
17+
- `θ` the length `p` vector of weights to be optimized
18+
- `P` is a penalty function
19+
1420
Additional regression/classification methods which do not directly correspond to this formulation may be added in the future.
1521

1622
The core aims of this package are:

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ where:
1111
* ``y`` is the **target** or **response**, a vector of length ``n`` either of real values (_regression_) or integers (_classification_),
1212
* ``X`` is the **design** or **feature** matrix, a matrix of real values of size ``n \times p`` where ``p`` is the number of _features_ or _dimensions_,\
1313
* ``\theta`` is a vector of ``p`` real valued coefficients to determine,
14-
* ``L`` is a **loss function**, a pre-determined function of ``\mathbb R^n`` to ``\mathbb R^+`` penalising the amplitude of the _residuals_ in a specific way,
14+
* ``L`` is a **loss function**, a pre-determined function of ``\mathbb R^n \times \mathbb R^n`` to ``\mathbb R^+`` penalising the amplitude of the _residuals_ in a specific way,
1515
* ``P`` is a **penalty function**, a pre-determined function of ``\mathbb R^n`` to ``\mathbb R^+`` penalising the amplitude of the _coefficients_ in a specific way.
1616

1717
A well known example is the [Ridge regression](https://en.wikipedia.org/wiki/Tikhonov_regularization) where the objective is to minimise:

0 commit comments

Comments
 (0)