878be5344a7cca66858ba82981713099bde5f12f,python/examples/hypertools_demo-PPCA.py,,,#,4

Before Change


import numpy as np

data1 = np.array(np.random.random((10,10)))
data1[1,0]=np.nan
data2 = np.array(np.random.random((10,10)))
data2[5,5]=np.nan
hyp.plot([data1,data2])

After Change


from copy import copy
import hypertools as hyp

K = 10 - toeplitz(np.arange(10))

data1 = np.cumsum(np.random.multivariate_normal(np.zeros(10), K, 250), axis=0)
data2 = copy(data1)
sample_inds = np.random.choice(data2.shape[0], data2.shape[0]*.1)
for sample in sample_inds:
    data2[sample,:]=np.nan

print(data2[sample,0])
hyp.plot([data1,data2])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: ContextLab/hypertools
Commit Name: 878be5344a7cca66858ba82981713099bde5f12f
Time: 2016-12-19
Author: andrew.heusser@gmail.com
File Name: python/examples/hypertools_demo-PPCA.py
Class Name:
Method Name:


Project Name: ContextLab/hypertools
Commit Name: edaf3f4c2303b8c0364266d092335733b66ffbd0
Time: 2016-12-19
Author: andrew.heusser@gmail.com
File Name: python/examples/hypertools_demo-PPCA.py
Class Name:
Method Name:


Project Name: OpenNMT/OpenNMT-py
Commit Name: ba164c0dbb3d8171004380956a88431f4e8248ba
Time: 2017-08-01
Author: bpeters@coli.uni-saarland.de
File Name: onmt/Models.py
Class Name: Embeddings
Method Name: make_positional_encodings