From fba360147b2229c076df45e8801b3455319defef Mon Sep 17 00:00:00 2001 From: Salvador Balkus Date: Sun, 7 Jul 2024 21:14:37 -0400 Subject: [PATCH] more descriptive error message when selecting invalid optlib for KLIEP and LSIF --- src/kliep.jl | 2 +- src/lsif.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kliep.jl b/src/kliep.jl index 6342788..096dd8b 100644 --- a/src/kliep.jl +++ b/src/kliep.jl @@ -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), ", "))" diff --git a/src/lsif.jl b/src/lsif.jl index 9c75d8f..4e2dd05 100644 --- a/src/lsif.jl +++ b/src/lsif.jl @@ -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" \ No newline at end of file +_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), ", "))" \ No newline at end of file