From 23288a86e7786e2076af0c6f0daeb8798999ee87 Mon Sep 17 00:00:00 2001 From: Pierre Alexandre Tremblay Date: Thu, 20 Nov 2025 21:07:58 +0100 Subject: [PATCH] KNNregressor: fixes json loading, fixes #324 --- include/flucoma/clients/nrt/KNNRegressorClient.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/flucoma/clients/nrt/KNNRegressorClient.hpp b/include/flucoma/clients/nrt/KNNRegressorClient.hpp index c07201f0..57bf0255 100644 --- a/include/flucoma/clients/nrt/KNNRegressorClient.hpp +++ b/include/flucoma/clients/nrt/KNNRegressorClient.hpp @@ -43,8 +43,8 @@ bool check_json(const nlohmann::json& j, const KNNRegressorData&) return fluid::check_json(j, {"tree", "target"}, {JSONTypes::OBJECT, JSONTypes::OBJECT}) && fluid::algorithm::check_json(j.at("tree"), algorithm::KDTree()) && - fluid::check_json(j.at("labels"), - FluidDataSet()); + fluid::check_json(j.at("target"), + FluidDataSet()); } void from_json(const nlohmann::json& j, KNNRegressorData& data)