Skip to content

Commit

Permalink
initialize triplets from random state
Browse files Browse the repository at this point in the history
  • Loading branch information
stsievert committed May 21, 2021
1 parent 621a67e commit 4c8f4d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/PoolBasedTripletMDS/algs/STE/myAlg.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@

class MyAlg:
def initExp(self,butler,n,d,failure_probability):
X = numpy.random.randn(n,d)*.0001
tau = numpy.random.rand(n,n)
rng = np.random.RandomState(400)
X = rng.randn(n,d)*.0001
tau = rng.rand(n,n)

butler.algorithms.set(key='n',value=n)
butler.algorithms.set(key='d',value=d)
Expand Down

0 comments on commit 4c8f4d5

Please sign in to comment.