# LCOV - BayesNet Coverage Report - bayesnet/feature_selection/IWSS.h

LCOV - code coverage report

Current view: | top level - bayesnet/feature_selection - IWSS.h (source / functions) |  |  | Coverage | Total | Hit
Test: | BayesNet Coverage Report |  | Lines: | 100.0 % | 1 | 1
Test Date: | 2024-05-06 17:54:04 |  | Functions: | 100.0 % | 1 | 1
Legend: | Lines: hit not hit |

                Line data    Source code

           1              : // ***************************************************************
           2              : // SPDX-FileCopyrightText: Copyright 2024 Ricardo Montañana Gómez
           3              : // SPDX-FileType: SOURCE
           4              : // SPDX-License-Identifier: MIT
           5              : // ***************************************************************
           6              :
           7              : #ifndef IWSS_H
           8              : #define IWSS_H
           9              : #include <vector>
          10              : #include <torch/torch.h>
          11              : #include "FeatureSelect.h"
          12              : namespace bayesnet {
          13              :     class IWSS : public FeatureSelect {
          14              :     public:
          15              :         // dataset is a n+1xm tensor of integers where dataset[-1] is the y std::vector
          16              :         IWSS(const torch::Tensor& samples, const std::vector<std::string>& features, const std::string& className, const int maxFeatures, const int classNumStates, const torch::Tensor& weights, const double threshold);
          17           48 :         virtual ~IWSS() {};
          18              :         void fit() override;
          19              :     private:
          20              :         double threshold = -1;
          21              :     };
          22              : }
          23              : #endif

Generated by: LCOV version 2.0-1