Skip to content

Commit

Permalink
maybe works
Browse files Browse the repository at this point in the history
  • Loading branch information
akusok committed Jan 21, 2016
1 parent 8802388 commit 3421249
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
'sphinx.ext.napoleon',
]

autodoc_mock_imports = ['tables',
'numpy',
autodoc_mock_imports = [#'numpy',
'scipy',
'tables',
'scipy.linalg',
'scipy.spatial.distance'] #17:40

Expand Down
5 changes: 2 additions & 3 deletions hpelm/mss_loo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"""

import numpy as np
from numpy.linalg import inv


def train_loo(self, X, T):
Expand All @@ -31,7 +30,7 @@ def train_loo(self, X, T):
rank, L = self._ranking(L, H, T) # create ranking of neurons

# PRESS_LOO
P = inv(HH)
P = np.linalg.inv(HH)
Bt = np.dot(P, HT)
R = np.ones((N,)) - np.einsum('ij,ji->i', np.dot(H, P), H.T)
Y = np.dot(H, Bt)
Expand Down Expand Up @@ -63,7 +62,7 @@ def train_loo(self, X, T):
HH1 = HH[rank1, :][:, rank1]
HT1 = HT[rank1, :]

P = inv(HH1)
P = np.linalg.inv(HH1)
Bt1 = np.dot(P, HT1)
R = np.ones((N,)) - np.einsum('ij,ji->i', np.dot(H1, P), H1.T)
Y1 = np.dot(H1, Bt1)
Expand Down
1 change: 0 additions & 1 deletion hpelm/nnets/slfn_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from slfn import SLFN
import numpy as np
from scipy.spatial.distance import cdist
from scipy.linalg import blas, lapack


Expand Down

0 comments on commit 3421249

Please sign in to comment.