Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
n_voxel, n_tr = data[0].shape

# Run HTFA with downloaded data
from brainiak.factor_analysis.htfa import HTFA
from brainiak.factoranalysis.htfa import HTFA
# uncomment below line to get help message on HTFA
#help(HTFA)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
n_voxel, n_tr = data.shape

# Run TFA with downloaded data
from brainiak.factor_analysis.tfa import TFA
from brainiak.factoranalysis.tfa import TFA
# uncomment below line to get help message on TFA
#help(TFA)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
},
"outputs": [],
"source": [
"import brainiak.functional_alignment.srm\n",
"help(brainiak.functional_alignment.srm.SRM)"
"import brainiak.funcalign.srm\n",
"help(brainiak.funcalign.srm.SRM)"
]
},
{
Expand Down Expand Up @@ -114,7 +114,7 @@
},
"outputs": [],
"source": [
"srm = brainiak.functional_alignment.srm.SRM(n_iter=10, features=50, verbose=False)\n",
"srm = brainiak.funcalign.srm.SRM(n_iter=10, features=50, verbose=False)\n",
"srm.fit(movie_data)"
]
},
Expand Down Expand Up @@ -334,7 +334,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.4.3"
"version": "3.5.1"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@
movie_data[subject] = stats.zscore(movie_data[subject],axis=1,ddof=1)

# Run SRM with the movie data
import brainiak.functional_alignment.srm
help(brainiak.functional_alignment.srm.SRM)
srm = brainiak.functional_alignment.srm.SRM(n_iter=10, features=50,
verbose=True)
import brainiak.funcalign.srm
help(brainiak.funcalign.srm.SRM)
srm = brainiak.funcalign.srm.SRM(n_iter=10, features=50, verbose=True)
srm.fit(movie_data)

# We define a function to present the output of the experiment.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def __str__(self):

ext_modules = [
Extension(
'brainiak.factor_analysis.tfa_extension',
['brainiak/factor_analysis/tfa_extension.cpp'],
'brainiak.factoranalysis.tfa_extension',
['brainiak/factoranalysis/tfa_extension.cpp'],
include_dirs=[
# Path to pybind11 headers
get_pybind_include(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
import pytest

def test_R():
from brainiak.factor_analysis.htfa import HTFA
from brainiak.factoranalysis.htfa import HTFA
with pytest.raises(TypeError) as excinfo:
htfa = HTFA()
assert "missing 1 required positional argument" in str(excinfo.value)

def test_X():
from brainiak.factor_analysis.htfa import HTFA
from brainiak.factoranalysis.htfa import HTFA
import numpy as np

n_voxel = 100
Expand Down Expand Up @@ -104,7 +104,7 @@ def test_X():

def test_can_run():
import numpy as np
from brainiak.factor_analysis.htfa import HTFA
from brainiak.factoranalysis.htfa import HTFA
from mpi4py import MPI
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import pytest

def test_tfa():
from brainiak.factor_analysis.tfa import TFA
from brainiak.factoranalysis.tfa import TFA
import numpy as np

n_voxel = 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
def test_can_instantiate():
import brainiak.functional_alignment.srm
s = brainiak.functional_alignment.srm.SRM()
import brainiak.funcalign.srm
s = brainiak.funcalign.srm.SRM()
assert s, "Invalid SRM instance!"

import numpy as np
Expand All @@ -23,8 +23,8 @@ def test_can_instantiate():
subjects = 2
features = 3

s = brainiak.functional_alignment.srm.SRM(verbose=True, n_iter=5,
features=features)
s = brainiak.funcalign.srm.SRM(verbose=True, n_iter=5,
features=features)
assert s, "Invalid SRM instance!"


Expand Down