// *************************************************************** // SPDX-FileCopyrightText: Copyright 2024 Ricardo Montañana Gómez // SPDX-FileType: SOURCE // SPDX-License-Identifier: MIT // *************************************************************** #ifndef FCBF_H #define FCBF_H #include #include #include "bayesnet/feature_selection/FeatureSelect.h" namespace bayesnet { class FCBF : public FeatureSelect { public: // dataset is a n+1xm tensor of integers where dataset[-1] is the y std::vector FCBF(const torch::Tensor& samples, const std::vector& features, const std::string& className, const int maxFeatures, const int classNumStates, const torch::Tensor& weights, const double threshold); virtual ~FCBF() {}; void fit() override; private: double threshold = -1; }; } #endif