Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Jun 12, 2024
1 parent 6fbe1b2 commit 31d76aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion process_fields.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@
"source": [
"\n",
"likeliHoodGraph = ot.Graph()\n",
"myBXTrans = ot.BoxCoxFactory().build(myReal, [0], likeliHoodGraph)\n",
"myBXTrans, likeliHoodGraph = ot.BoxCoxFactory().buildWithGraph(myReal, [0])\n",
"myNewReal = myBXTrans(myReal)\n",
"newHist = ot.HistogramFactory().build(myNewReal.getValues())\n",
"graph2 = newHist.drawPDF()\n",
Expand Down
5 changes: 4 additions & 1 deletion sobol_field.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@
"projection = ot.IntegrationStrategy(ot.GaussProductExperiment(distribution, [marginalDegree+1]*dim))\n",
"\n",
"# PCE\n",
"algo = ot.FunctionalChaosAlgorithm(model, distribution, adaptive, projection)\n",
"marginalSizes = [4] * dim\n",
"X, W = ot.GaussProductExperiment(distribution, marginalSizes).generateWithWeights()\n",
"Y = model(X)\n",
"algo = ot.FunctionalChaosAlgorithm(X, W, Y, distribution, adaptive, projection)\n",
"t0 = time.time()\n",
"#ot.Log.Show(ot.Log.INFO)\n",
"algo.run()\n",
Expand Down

0 comments on commit 31d76aa

Please sign in to comment.