Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed May 6, 2024
1 parent c2ae0b9 commit ecffbf1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions python/src/SlicedInverseRegression_doc.i.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,17 @@ y : :py:class:`openturns.Sample`

Examples
--------
>>> import openturns as ot
>>> import otsliced
>>> X = ot.Normal(2).getSample(100)
>>> Y = ot.Normal(2).getSample(100)
>>> N = 100
>>> X = ot.Normal([0.0] * 2, [0.1] * 2).getSample(N)
>>> X += [[-i / (N - 1), 2 * i / (N - 1)] for i in range(N)]
>>> X = X - X.computeMean()
>>> f = ot.SymbolicFunction(['x1', 'x2'], ['4*(x1+2*x2)+2'])
>>> Y = f(X) + ot.Normal(0.0, 0.2).getSample(N)
>>> algo = otsliced.SlicedInverseRegression(X, Y)
>>> algo.run()
>>> transformation = algo.getResult().getTransformation()
"

// ---------------------------------------------------------------------
Expand Down

0 comments on commit ecffbf1

Please sign in to comment.