-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patholfactory_import.py
36 lines (27 loc) · 965 Bytes
/
olfactory_import.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
import tensorflow as tf
import matplotlib.pyplot as plt
import edward as ed
from edward.util import rbf
from edward.models import Bernoulli, MultivariateNormalTriL, Normal
from sklearn.decomposition import PCA
from sklearn.model_selection import train_test_split
import mvn_kron
import mvn_kron_autograd
from mvn_ed import MatrixNormal
from mvn_kron_ed import MatrixNormal_Kron
from mvn_kron_fast_ed import MatrixNormal_Kron_fast
from mvn_kron_fast_ed_sample import MatrixNormal_Kron_fast_sample
import autograd.numpy as np
import autograd.numpy.random as npr
import autograd.scipy.stats.norm as norm
import autograd.scipy.stats.multivariate_normal as mvn
from autograd import grad
from autograd import value_and_grad
from autograd.misc.optimizers import adam
import scipy.io
from scipy import stats
from scipy.optimize import minimize