diff --git a/.ci_support/run_docker_linux.sh b/.ci_support/run_docker_linux.sh index 19c8cb4..42c6c82 100755 --- a/.ci_support/run_docker_linux.sh +++ b/.ci_support/run_docker_linux.sh @@ -16,15 +16,14 @@ ctest --output-on-failure --timeout 100 ${MAKEFLAGS} # coverage gcov `find lib/src/ -name "*.gcno"` -lcov --capture --directory ./lib/src/ -o coverage.info -lcov --remove coverage.info "/usr/include/*" -o coverage.info -genhtml coverage.info --output-directory ~/.local/share/doc/*/html/coverage -cp -v coverage.info ~/.local/share/doc/*/html/coverage +lcov --capture --directory . --output-file coverage.info --include "*.cxx" +genhtml --output-directory coverage coverage.info +cp -v coverage.info coverage uid=$1 gid=$2 if test -n "${uid}" -a -n "${gid}" then - sudo cp -r ~/.local/share/doc/*/html /io + sudo cp -r ~/.local/share/doc/*/html coverage /io sudo chown -R ${uid}:${gid} /io/html fi diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f5fdf36..b8cce30 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,8 +30,7 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} slug: openturns/otsvm - file: ./html/coverage/coverage.info - verbose: true + file: ./coverage/coverage.info mingw: runs-on: ubuntu-latest diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index f0fc9d6..0000000 --- a/codecov.yml +++ /dev/null @@ -1,8 +0,0 @@ -coverage: - status: - patch: false - project: - default: - threshold: 0.5% -comment: - behavior: default diff --git a/lib/src/SVMKernelRegressionEvaluation.cxx b/lib/src/SVMKernelRegressionEvaluation.cxx index 6f0ba22..3100a7d 100644 --- a/lib/src/SVMKernelRegressionEvaluation.cxx +++ b/lib/src/SVMKernelRegressionEvaluation.cxx @@ -95,7 +95,6 @@ Point SVMKernelRegressionEvaluation::operator() (const Point & inP) const if (lagrangeMultiplier_[i] != 0.0) output += lagrangeMultiplier_[i] * kernel_(dataIn_[i], inP); } - const Point result(1, output); return Point(1, output); } diff --git a/lib/src/SVMRegression.cxx b/lib/src/SVMRegression.cxx index ce6b54f..16ef01d 100644 --- a/lib/src/SVMRegression.cxx +++ b/lib/src/SVMRegression.cxx @@ -82,16 +82,10 @@ void SVMRegression::run() Scalar bestTradeoffFactor = tradeoffFactor_[0]; Scalar bestKernelParameter = kernelParameter_[0]; - Sample isoProbSample( size, inputDimension ); Function outputTransformation; Function outputInverseTransformation; Collection marginals; - Collection outputTransformationMarginals; - - Point relativeError( outputDimension ); - Point residu( outputDimension ); - Point variance( outputDimension ); driver_.normalize(outputSample_, outputTransformation, outputInverseTransformation); Sample normalizedOutputSample(outputTransformation(outputSample_));