Skip to content

Commit

Permalink
Clean unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudin47 committed Apr 30, 2024
1 parent 519485c commit 8a7be33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Sample FunctionalChaosValidation::ComputeMetamodelCrossValidationPredictions(
Indices indicesTest;
for (UnsignedInteger foldIndex = 0; foldIndex < kParameter; ++foldIndex)
{
[[maybe_unused]] const Indices indicesTrain(splitter.generate(indicesTest));
splitter.generate(indicesTest);
const UnsignedInteger foldSize = indicesTest.getSize();
SymmetricMatrix projectionKFoldMatrix(foldSize);
for (UnsignedInteger i1 = 0; i1 < foldSize; ++i1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Sample LinearModelValidation::ComputeMetamodelKFoldPredictions(
for (UnsignedInteger foldIndex = 0; foldIndex < kParameter; ++foldIndex)
{
Indices indicesTest;
[[maybe_unused]] const Indices indicesTrain(splitter.generate(indicesTest));
splitter.generate(indicesTest);
const UnsignedInteger foldSize = indicesTest.getSize();
SymmetricMatrix projectionKFoldMatrix(foldSize);
for (UnsignedInteger i1 = 0; i1 < foldSize; ++i1)
Expand Down

0 comments on commit 8a7be33

Please sign in to comment.