Skip to content

Commit

Permalink
PCA-like GPFA interface (#287)
Browse files Browse the repository at this point in the history
* Refactor GPFA codes in an object-oriented manner, similar to scikit-learn PCA

* Simplify the input and output structure (from numpy.recarray to dict)

* Add a test for cross-validation

* Moved all GPFA-related files in gpfa folder

* Added GPFA tutorial

* added GPFA reference to doc/modules

* Added tqdm progress bar

Co-authored-by: Junji Ito <[email protected]>
Co-authored-by: Danylo Ulianych <[email protected]>
  • Loading branch information
3 people authored Feb 5, 2020
1 parent a8d752e commit 596afc3
Show file tree
Hide file tree
Showing 12 changed files with 2,049 additions and 1,003 deletions.
1 change: 1 addition & 0 deletions doc/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Function Reference by Module
reference/conversion
reference/cubic
reference/current_source_density
reference/gpfa
reference/kernels
reference/neo_tools
reference/pandas_bridge
Expand Down
2 changes: 1 addition & 1 deletion doc/reference/gpfa.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
`GPFA` - Gaussian-process factor analysis
=========================================

.. automodule:: elephant.gpfa
.. automodule:: elephant.gpfa.gpfa
:members:
964 changes: 964 additions & 0 deletions doc/tutorials/gpfa.ipynb

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion elephant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@
conversion,
neo_tools,
cell_assembly_detection,
waveform_features)
spade,
waveform_features,
gpfa)

try:
from . import pandas_bridge
from . import asset
from . import spade
except ImportError:
# requirements-extras are missing
# please run command `pip install -r requirements-extras.txt`
pass


Expand Down
Loading

0 comments on commit 596afc3

Please sign in to comment.