mirror of
https://github.com/rmontanana/mdlp.git
synced 2025-08-16 07:55:58 +00:00
Update github workflow
This commit is contained in:
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt-get -y install lcov
|
sudo apt-get -y install lcov
|
||||||
sudo apt-get -y install gcovr
|
sudo apt-get -y install gcovr
|
||||||
- name: Setup Conan profile
|
- name: Setup Conan profileson
|
||||||
run: |
|
run: |
|
||||||
conan profile detect --force
|
conan profile detect --force
|
||||||
conan remote add cimmeria https://conan.rmontanana.es/artifactory/api/conan/Cimmeria
|
conan remote add cimmeria https://conan.rmontanana.es/artifactory/api/conan/Cimmeria
|
||||||
@@ -44,14 +44,15 @@ jobs:
|
|||||||
cp -r tests/datasets build_debug/tests/datasets
|
cp -r tests/datasets build_debug/tests/datasets
|
||||||
cd build_debug/tests
|
cd build_debug/tests
|
||||||
ctest --output-on-failure -j 4
|
ctest --output-on-failure -j 4
|
||||||
lcov --capture --directory ../ --demangle-cpp --ignore-errors source,source --ignore-errors mismatch,mismatch --ignore-errors inconsistent --output-file coverage.info --ignore-errors unused
|
lcov --capture --directory ../ --demangle-cpp --ignore-errors source,source --ignore-errors mismatch --ignore-errors inconsistent --output-file coverage.info --ignore-errors gcov >/dev/null 2>&1
|
||||||
lcov --remove coverage.info '/usr/*' --output-file coverage.info
|
lcov --remove coverage.info '/usr/*' --output-file coverage.info >/dev/null 2>&1
|
||||||
lcov --remove coverage.info 'libtorch/*' --output-file coverage.info
|
lcov --remove coverage.info 'lib/*' --output-file coverage.info >/dev/null 2>&1
|
||||||
lcov --remove coverage.info '../tests/*' --output-file coverage.info
|
lcov --remove coverage.info 'libtorch/*' --output-file coverage.info --ignore-errors unused >/dev/null 2>&1
|
||||||
lcov --remove coverage.info 'tests/*' --output-file coverage.info
|
lcov --remove coverage.info 'tests/*' --output-file coverage.info >/dev/null 2>&1
|
||||||
lcov --remove coverage.info 'gtest/*' --output-file coverage.info
|
lcov --remove coverage.info 'gtest/*' --output-file coverage.info >/dev/null 2>&1
|
||||||
lcov --remove coverage.info '*/.conan2/*' --ignore-errors unused --output-file coverage.info
|
lcov --remove coverage.info '*/.conan2/*' --ignore-errors unused --output-file coverage.info >/dev/null 2>&1
|
||||||
gcovr -f ../../src/CPPFImdlp.cpp -f ../../src/Metrics.cpp -f ../../src/BinDisc.cpp -f ../../src/Discretizer.cpp --txt --sonarqube=coverage.xml
|
genhtml coverage.info --demangle-cpp --output-directory coverage --title "Discretizer mdlp Coverage Report" -s -k -f --legend
|
||||||
|
gcovr -r ../../ -f ../src/CPPFImdlp.cpp -f ../src/Metrics.cpp -f ../src/BinDisc.cpp -f ../src/Discretizer.cpp --sonarqube=coverage.xml
|
||||||
- name: Run sonar-scanner
|
- name: Run sonar-scanner
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
[](https://sonarcloud.io/summary/new_code?id=rmontanana_mdlp)
|
[](https://sonarcloud.io/summary/new_code?id=rmontanana_mdlp)
|
||||||
[](html/index.html)
|
[](html/index.html)
|
||||||
[](https://deepwiki.com/rmontanana/mdlp)
|
[](https://deepwiki.com/rmontanana/mdlp)
|
||||||
[](https://doi.org/10.5281/zenodo.14245443)
|
[](https://doi.org/10.5281/zenodo.16025501)
|
||||||
|
|
||||||
# <img src="logo.png" alt="logo" width="50"/> mdlp
|
# <img src="logo.png" alt="logo" width="50"/> mdlp
|
||||||
|
|
||||||
@@ -18,9 +18,7 @@ Other features:
|
|||||||
|
|
||||||
- Intervals with the same value of the variable are not taken into account for cutpoints.
|
- Intervals with the same value of the variable are not taken into account for cutpoints.
|
||||||
- Intervals have to have more than two examples to be evaluated (mdlp).
|
- Intervals have to have more than two examples to be evaluated (mdlp).
|
||||||
|
|
||||||
- The algorithm returns the cut points for the variable.
|
- The algorithm returns the cut points for the variable.
|
||||||
|
|
||||||
- The transform method uses the cut points returning its index in the following way:
|
- The transform method uses the cut points returning its index in the following way:
|
||||||
|
|
||||||
cut[i - 1] <= x < cut[i]
|
cut[i - 1] <= x < cut[i]
|
||||||
|
Reference in New Issue
Block a user