Skip to content

Commit

Permalink
DOC
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed Feb 6, 2021
1 parent d4d6893 commit 8ee46cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions eelbrain/_trf/_boosting.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ class BoostingResult(PickleableDataClass):
Attributes
----------
h : NDVar | tuple of NDVar
The temporal response function. Whether ``h`` is an NDVar or a tuple of
NDVars depends on whether the ``x`` parameter to :func:`boosting` was
an NDVar or a sequence of NDVars.
The temporal response function (the average of all TRFs from the
different runs/partitions).
Whether ``h`` is an :class:`NDVar` or a :class:`tuple` of :class:`NDVar`
depends on whether the ``x`` parameter to :func:`boosting` was an
:class:`NDVar` or a sequence of :class:`NDVar`.
h_scaled : NDVar | tuple of NDVar
``h`` scaled such that it applies to the original input ``y`` and ``x``.
If boosting was done with ``scale_data=False``, ``h_scaled`` is the same
Expand Down Expand Up @@ -109,6 +111,9 @@ class BoostingResult(PickleableDataClass):
splits : Splits
Data splits used for cross-validation.
Use :meth:`.splits.plot` to visualize the cross-validation scheme.
partition_results : list of BoostingResuls
If :func:`boosting` is called with ``partition_results=True``, this
attribute contains the results for the individual test paritions.
algorithm_version : int
Version of the algorithm with which the model was estimated; ``-1`` for
results from before this attribute was added.
Expand Down
2 changes: 1 addition & 1 deletion eelbrain/plot/_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ class SequencePlotter:
res = testnd.TTestRelated('srcm', 'condition')
vmax = 3 # explicitly set vmax to make sure that the color-maps agree
sp = plot.brain.SequancePlotter()
sp = plot.brain.SequencePlotter()
sp.set_brain_args(surf='inflated')
sp.add_ndvar(res.c1_mean, vmax=vmax, label='a')
sp.add_ndvar(res.c0_mean, vmax=vmax, label = 'b')
Expand Down

0 comments on commit 8ee46cf

Please sign in to comment.