Skip to content

Commit

Permalink
Reduced the execution time of the unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudin47 committed Aug 23, 2023
1 parent cb2a417 commit 2700dff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/test/t_FunctionalChaos_conditionalExpectation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ int main(int, char *[])
fullprint << productBasis.__str__() << std::endl;

// Create the adaptive strategy
UnsignedInteger degree = 12;
UnsignedInteger degree = 10;
UnsignedInteger basisDimension = enumerateFunction.getBasisSizeFromTotalDegree(degree);
FixedStrategy adaptiveStrategy(productBasis, basisDimension);
// Create the result object here in order to test the save/load mechanism outside of the double loop
FunctionalChaosResult result;
// Create the projection strategy
UnsignedInteger samplingSize = 1000;
UnsignedInteger samplingSize = 500;
// Full: ProjectionStrategy projectionStrategy{LeastSquaresStrategy()};
// Sparse:
FittingAlgorithm fittingAlgorithm = CorrectedLeaveOneOut();
Expand Down
4 changes: 2 additions & 2 deletions python/test/t_FunctionalChaos_conditionalExpectation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
# Create Ishigami
im = ishigami_function.IshigamiModel()
input_names = im.distributionX.getDescription()
sampleSize = 1000
sampleSize = 500
inputSample = im.distributionX.getSample(sampleSize)
outputSample = im.model(inputSample)

# Create PCE
multivariateBasis = ot.OrthogonalProductPolynomialFactory([im.X1, im.X2, im.X3])
totalDegree = 12
totalDegree = 10
enumerateFunction = multivariateBasis.getEnumerateFunction()
basisSize = enumerateFunction.getBasisSizeFromTotalDegree(totalDegree)
selectionAlgorithm = ot.LeastSquaresMetaModelSelectionFactory()
Expand Down

0 comments on commit 2700dff

Please sign in to comment.