Skip to content

Commit

Permalink
Fixes to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm authored Jul 26, 2024
1 parent dba285a commit bc5d898
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ can be simplified given that the optimization package is already loaded:
r = densratio(x_nu, x_de, KLIEP())
```

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

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

Methods like `KLIEP` are equipped with tuning strategies, and its hyperparameters
can be found using the following line:
can be found using the following code:

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

0 comments on commit bc5d898

Please sign in to comment.