Skip to content

Commit bc5d898

Browse files
authored
Fixes to README.md
1 parent dba285a commit bc5d898

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ can be simplified given that the optimization package is already loaded:
6363
r = densratio(x_nu, x_de, KLIEP())
6464
```
6565

66-
Different implementations of the same estimator are loaded using the
67-
[Requires.jl](https://github.com/MikeInnes/Requires.jl) package, and
68-
the keyword argument `optlib` can be any of:
66+
Different implementations of the same estimator are loaded using package extensions,
67+
and the keyword argument `optlib` can be any of:
6968

7069
* `JuliaLib` - Pure Julia implementation
7170
* `OptimLib` - [Optim.jl](https://github.com/JuliaNLSolvers/Optim.jl) implementation
@@ -95,14 +94,14 @@ r = densratiofunc(x_nu, x_de, KLIEP())
9594
### Hyperparameter tuning
9695

9796
Methods like `KLIEP` are equipped with tuning strategies, and its hyperparameters
98-
can be found using the following line:
97+
can be found using the following code:
9998

10099
```julia
101100
dre = fit(KLIEP, x_nu, x_de, LCV((σ=[1.,2.,3.],b=[100]))
102101
```
103102
104103
The function returns a `KLIEP` instance with parameters optimized for the samples.
105-
In this case, the line uses likelihood cross-validation `LCV` as the tuning
104+
In this case, the code uses likelihood cross-validation `LCV` as the tuning
106105
strategy. It accepts a named tuple with the hyperparameter ranges for `KLIEP`,
107106
the kernel width `σ` and the number of basis functions `b`. Currently, the
108107
following tuning strategies are implemented:

0 commit comments

Comments
 (0)