From 07a8a4396ece49b120a4dc619c0443d426b0786b Mon Sep 17 00:00:00 2001 From: Junyuan Chen Date: Fri, 26 Apr 2024 10:09:34 -0700 Subject: [PATCH] A minor change --- src/data.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data.jl b/src/data.jl index f2508de..85bd58c 100644 --- a/src/data.jl +++ b/src/data.jl @@ -636,7 +636,7 @@ function _makeXendo(dt::LPData{TF,<:Vector}, esampleT::BitVector, horz, yfs::Vec k1 = k2 + 1 end end - _feresiduals!(Xendo, FE, W) + isempty(FE) || _feresiduals!(Xendo, FE, W) W isa UnitWeights || (Xendo .*= sqrt.(W)) return Xendo end @@ -659,7 +659,7 @@ function _makeXendo(dt::LPData{TF,<:Vector}, esampleT::Nothing, horz, yfs::Vecto i1 = i2 + 1 end end - _feresiduals!(Xendo, FE, W) + isempty(FE) || _feresiduals!(Xendo, FE, W) W isa UnitWeights || (Xendo .*= sqrt.(W)) return Xendo end