-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #264 from flatironinstitute/sphinx
Sphinx
- Loading branch information
Showing
80 changed files
with
7,545 additions
and
5,253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
# Set an environ variable available during sphinx build | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{{ fullname | escape | underline }} | ||
|
||
.. currentmodule:: {{ module }} | ||
|
||
.. autoclass:: {{ objname }} | ||
:members: | ||
:inherited-members: | ||
|
||
{% block attributes %} | ||
{% if attributes %} | ||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
:toctree: ./ | ||
{% for item in attributes %} | ||
~{{ objname }}.{{ item }} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block methods %} | ||
.. automethod:: __init__ | ||
|
||
{% if methods %} | ||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
:toctree: ./ | ||
{% for item in methods %} | ||
~{{ objname }}.{{ item }} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% extends "!layout.html" %} | ||
|
||
{%- block footer %} | ||
<footer class="footer" style="border-top: 1px solid #ccc; padding-top: 10px"> | ||
<div class="container"> | ||
<div id="credits" style="width: 50%; float: left"> | ||
<p> | ||
{% trans copyright=copyright|e %}© Copyright {{ copyright }}, <a href="https://www.simonsfoundation.org/people/edoardo-balzani/">nemos authors</a>.{% endtrans %}<br/> | ||
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> and the <a href="https://pydata-sphinx-theme.readthedocs.io/en/stable/">PyData Theme</a>.<br/> | ||
</p> | ||
</div> | ||
<div id="version" style="color: #999; float: right; margin: 15px">v{{ version }}</div> | ||
</div> | ||
</div> | ||
</footer> | ||
{%- endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
.. _api_ref: | ||
|
||
API Reference | ||
============= | ||
|
||
.. _nemos_glm: | ||
The ``nemos.glm`` module | ||
------------------------ | ||
Classes for creating Generalized Linear Models (GLMs) for both single neurons and neural populations. | ||
|
||
.. currentmodule:: nemos.glm | ||
|
||
.. autosummary:: | ||
:toctree: generated/glm | ||
:recursive: | ||
:nosignatures: | ||
|
||
GLM | ||
PopulationGLM | ||
|
||
.. _nemos_basis: | ||
The ``nemos.basis`` module | ||
-------------------------- | ||
Provides basis function classes to construct and transform features for model inputs. | ||
|
||
.. currentmodule:: nemos.basis | ||
|
||
.. autosummary:: | ||
:toctree: generated/basis | ||
:recursive: | ||
:nosignatures: | ||
|
||
Basis | ||
SplineBasis | ||
BSplineBasis | ||
CyclicBSplineBasis | ||
MSplineBasis | ||
OrthExponentialBasis | ||
RaisedCosineBasisLinear | ||
RaisedCosineBasisLog | ||
AdditiveBasis | ||
MultiplicativeBasis | ||
TransformerBasis | ||
|
||
.. _observation_models: | ||
The ``nemos.observation_models`` module | ||
-------------------------------------- | ||
Statistical models to describe the distribution of neural responses or other predicted variables, given inputs. | ||
|
||
.. currentmodule:: nemos.observation_models | ||
|
||
.. autosummary:: | ||
:toctree: generated/observation_models | ||
:recursive: | ||
:nosignatures: | ||
|
||
Observations | ||
PoissonObservations | ||
GammaObservations | ||
|
||
.. _regularizers: | ||
The ``nemos.regularizer`` module | ||
-------------------------------- | ||
Implements various regularization techniques to constrain model parameters, which helps prevent overfitting. | ||
|
||
.. currentmodule:: nemos.regularizer | ||
|
||
.. autosummary:: | ||
:toctree: generated/regularizer | ||
:recursive: | ||
:nosignatures: | ||
|
||
Regularizer | ||
UnRegularized | ||
Ridge | ||
Lasso | ||
GroupLasso | ||
|
||
The ``nemos.simulation`` module | ||
------------------------------- | ||
Utility functions for simulating spiking activity in recurrently connected neural populations. | ||
|
||
.. currentmodule:: nemos.simulation | ||
|
||
.. autosummary:: | ||
:toctree: generated/simulation | ||
:recursive: | ||
:nosignatures: | ||
|
||
simulate_recurrent | ||
difference_of_gammas | ||
regress_filter | ||
|
||
|
||
The ``nemos.convolve`` module | ||
----------------------------- | ||
Utility functions for running convolution over the sample axis. | ||
|
||
.. currentmodule:: nemos.convolve | ||
|
||
.. autosummary:: | ||
:toctree: generated/regularizer | ||
:recursive: | ||
:nosignatures: | ||
|
||
create_convolutional_predictor | ||
tensor_convolve | ||
|
||
|
||
The ``nemos.identifiability_constraints`` module | ||
------------------------------------------------ | ||
Functions to apply identifiability constraints to rank-deficient feature matrices, ensuring the uniqueness of model | ||
solutions. | ||
|
||
.. currentmodule:: nemos.identifiability_constraints | ||
|
||
.. autosummary:: | ||
:toctree: generated/identifiability_constraints | ||
:recursive: | ||
:nosignatures: | ||
|
||
apply_identifiability_constraints | ||
apply_identifiability_constraints_by_basis_component | ||
|
||
The ``nemos.pytrees.FeaturePytree`` class | ||
----------------------------------------- | ||
Class for storing the input arrays in a dictionary. Keys are usually variable names. | ||
These objects can be provided as input to nemos GLM methods. | ||
|
||
.. currentmodule:: nemos.pytrees | ||
|
||
.. autosummary:: | ||
:toctree: generated/identifiability_constraints | ||
:recursive: | ||
:nosignatures: | ||
|
||
FeaturePytree |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
This file was deleted.
Oops, something went wrong.
File renamed without changes
Oops, something went wrong.