Skip to content

Commit

Permalink
more descriptive error message when selecting invalid optlib for KLIE…
Browse files Browse the repository at this point in the history
…P and LSIF
  • Loading branch information
salbalkus committed Jul 8, 2024
1 parent 3b92e13 commit fba3601
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/kliep.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ end
Return the coefficients of KLIEP basis expansion.
"""
_kliep_coeffs(K_nu, K_de, dre::KLIEP, optlib::Type{<:OptimizationLibrary}) = @error "KLIEP with optimization library $(optlib) is not implemented"
_kliep_coeffs(K_nu, K_de, dre::KLIEP, optlib::Type{<:OptimizationLibrary}) = @error "KLIEP with optimization library optlib = $(optlib) is not implemented. Available options: $(join(available_optlib(KLIEP), ", "))"
4 changes: 2 additions & 2 deletions src/lsif.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ end
"""
_lsif_coeffs(x_nu, x_de, basis, dre, optlib)
Return the coefficients of LSIF basis expansion.
Return the coefficients of LSIF basis expansion.s
"""
_lsif_coeffs(H, h, dre::LSIF, optlib::Type{<:OptimizationLibrary}) = @error "LSIF with optimization library $(optlib) is not implemented"
_lsif_coeffs(H, h, dre::LSIF, optlib::Type{<:OptimizationLibrary}) = @error "LSIF with optimization library optlib = $(optlib) is not implemented. Available options: $(join(available_optlib(LSIF), ", "))"

0 comments on commit fba3601

Please sign in to comment.