Python Noise-Tagging Brain-Computer Interface (PyntBCI)
Project description
PyntBCI
The Python Noise-Tagging Brain-Computer Interfacing (PyntBCI) library is a specialized Python toolbox developed for the noise-tagging brain-computer interfacing (BCI) project at the Donders Institute for Brain, Cognition, and Behaviour at Radboud University in Nijmegen, the Netherlands. PyntBCI offers a suite of signal processing tools and machine learning algorithms tailored for BCIs using evoked responses, such as those recorded by electroencephalography (EEG). It is particularly focused on supporting code-modulated responses like the code-modulated visual evoked potential (c-VEP).
For detailed documentation as wel as tutorials and examples, see:
For a constructive review of the c-VEP BCI field, see:
- Martínez-Cagigal, V., Thielen, J., Santamaría-Vázquez, E., Pérez-Velasco, S., Desain, P., & Hornero, R. (2021). Brain–computer interfaces based on code-modulated visual evoked potentials (c-VEP): a literature review. Journal of Neural Engineering. DOI: 10.1088/1741-2552/ac38cf
For an extensive literature overview, also see:
For an example of an online BCI with PyntBCI, see our Dareplane implementation:
- https://github.com/thijor/dp-cvep
- https://github.com/thijor/dp-cvep-speller
- https://github.com/thijor/dp-cvep-decoder
Installation
To install PyntBCI, use:
pip install pyntbci
Getting started
Various tutorials and example analysis pipelines are provided in the tutorials/ and examples/ folder, which operate on synthetic EEG data generated on the fly (see pyntbci.eeg).
Referencing
When using PyntBCI, please reference at least one of the following:
- Thielen, J., van den Broek, P., Farquhar, J., & Desain, P. (2015). Broad-Band visually evoked potentials: re(con)volution in brain-computer interfacing. PLOS ONE, 10(7), e0133797. DOI: 10.1371/journal.pone.0133797
- Thielen, J., Marsman, P., Farquhar, J., & Desain, P. (2021). From full calibration to zero training for a code-modulated visual evoked potentials for brain–computer interface. Journal of Neural Engineering, 18(5), 056007. DOI: 10.1088/1741-2552/abecef
Contact
- Jordy Thielen (jordy.thielen@donders.ru.nl)
Licensing
PyntBCI is licensed by the BSD 3-Clause License:
Copyright (c) 2021, Jordy Thielen All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Changelog
Version 1.9.0 (20-07-2026)
Added
- Added
vminandvmaxtotopoplotinplotting - Added
diffevent toevent_matrixinutilities - Added
eegmodule to generate synthetic multi-channel EEG data (c-VEP signal, and noise) - Added
Vectorizertotransformers - Added
classes_attribute toeCCA,Ensemble,rCCAinclassifiers,AggregateGate,DifferenceGateingates, and all classes instopping, for scikit-learnClassifierMixincompatibility - Added a clear, actionable error message in
CCAoftransformerswhen a covariance matrix is singular or too ill-conditioned to invert (e.g.ensemble=TrueineCCA/rCCAwith too little data per class), instead of a bare "singular matrix" error or, worse, a silently corrupted result; documented this risk onensembleineCCA/rCCA - Added a
dtypeparameter (default:"float32") to every generator function ineeg; all computation is still done internally in float64 (float64/complex128 for the FFT ingenerate_pink_noise) for numerical precision, and only cast to the requesteddtypeon the returned array - Added
innerand arunningmode (with a*_old/n_old-style state, matchingcovariance's existing convention) tocorrelationandeuclideaninutilities, letting a score matrix be updated with only newly observed samples instead of recomputed from scratch;correlation's running mode is implemented by reusingcovariance's existing running mechanism directly (correlation is covariance normalized by the two variances, verified numerically identical), whileeuclidean/inneraccumulate their own (simpler, since they need no running mean) raw sums - Added
running/resetparameters todecision_function/predictineCCA/rCCAofclassifiers(notensemble=True), letting them be fed only the newly observed samples of a growing trial instead of recomputing the full spatial (and, forrCCA, spatio-spectral) filter and score from scratch every call; forrCCA,decoding_matrix's forward-looking window is handled by keeping a small raw-sample buffer and only committing a position's contribution once no future sample can still change it. All 5stoppingclasses now use this internally infit()'s calibration loop, and expose the samerunning/resetparameters on their ownpredict(); for a wrappedestimatorthat isn't aneCCA/rCCA(or hasensemble=True), a transparent fallback buffers the raw data and recomputes from scratch instead, sorunning=Truestill works (just without the speedup). Verified numerically identical to the non-running computation (max abs error ~1e-13, floating-point noise) across every score metric,n_components, andrCCA'sdecoding_length/decoding_stridecombinations; measured 21x fasterdecision_functioncalls and 2x fasterfit()calibration on an 8.4s trial (84 segments). This targets the predict-time per-trial scoring loop specifically;CCAintransformersalready has a separate, pre-existingrunningmode for fit-time incremental covariance estimation across successivefit()calls (used to train the spatial filter itself) — the two are unrelated to each other by design, since predict-time running state (an in-progress trial's scores) and fit-time running state (the model's learned covariance) have different lifecycles, but both are built on the same underlyingcovariance()primitive - Added
examples/example_6_moabb.py, the first example to run on real (rather than synthetic) EEG data: the Thielen (2015) c-VEP dataset, loaded via MOABB and cross-validated with plain scikit-learn (StratifiedKFold+cross_val_score), sincerCCAis itself a scikit-learn compatible estimator; needs the optionalmoabb/mnedependencies and downloads ~450 MB of data on first use, so it is excluded from execution when building the documentation (seefilename_patternindoc/conf.py) - Added test coverage for
Ensembleinclassifiers(previously untested), the entireenvelopemodule (previously had no test file),eventplot/stimplotinplotting(previously onlytopoplotwas tested),find_neighbours,find_worst_neighbour,pinv, andtrials_to_epochsinutilities(previously untested), and a newtest_sklearn_compliance.pythat checksget_params()/set_params()/clone()round-tripping across every classifier, gate, and stopping estimator in the library - Added classification-correctness tests (
accuracy = mean(yh == y)against a threshold, not just output shape) foreCCA,rCCA,Ensembleinclassifiers,AggregateGate,DifferenceGateingates, and all classes instopping; previously every one of these tests only checked output shape, so a classifier that always predicted a constant class, or adecision_functioncomputed backwards, would have still passed the whole suite - Added a
runningparameter toeCCA/rCCAinclassifiers, lettingfit()be called repeatedly with new batches of trials that add to the previous fit instead of replacing it, by reusingCCA's own pre-existingrunning=Truemechanism for the spatial (and, forrCCA, spatio-temporal) filter's covariance. ForrCCAthis is mathematically exact: its templates (Ts_/Tw_) are derived purely from the (fixed) stimulus and the current filter, never from the training trials, sofit(X1, y1)thenfit(X2, y2)gives the identical filter (verified to ~1e-8) as onefit(concat(X1, X2), concat(y1, y2))call. ForeCCAit is necessarily an approximation, since its template is itself an average of the training trials and is used as the CCA fit's target on every call, so earlier calls see a less complete estimate of it than later ones; it converges towards the batch result as trials accumulate (verified: >0.999 cosine similarity to the batch filter after a few batches) but is not expected to equal it exactly, and is scoped tolagsbeing set,template_metric="mean", andensemble=False(the only combination with both a fixed, known-upfront class count and a single running template, rather than one needing to grow dynamically as new classes are observed or with no exact incremental form). Both raise a clear error on a channel/sample-count mismatch between calls, and both correctly restart a fresh running sequence (rather than silently resuming a stale one) ifrunningis toggled off and back on betweenfit()calls. This targets fit-time incremental training, the counterpart to the predict-time running scoring added above; the two are unrelated by design but share the samecovariance()primitive underneath
Changed
- Removed the bundled example/tutorial EEG data (
data/) from the package;tutorials/andexamples/now generate synthetic data witheeginstead - Removed the
pipelines/folder of standalone analysis scripts for external published datasets - Removed the
mnedependency;examples/now useVectorizerintransformersinstead ofmne.decoding.Vectorizer - Removed the 'seaborn' dependency; now simply relies on matplotlib
- Removed
eTRCAfromclassifiersandTRCAfromtransformers - Removed the
estimatorparameter fromcovarianceinutilities(and, with it,estimator_x/estimator_yfromCCAintransformersandcov_estimator_x/cov_estimator_t/cov_estimator_mfromeCCA/rCCAinclassifiers), along with theNotImplementedErrorit raised whenever a custom estimator was combined withrunning=Truepast the first call; the empirical covariance formula (the only implemented, tested path, since the custom-estimator path had no running-mode implementation to begin with) is used unconditionally instead - Dropped Python 3.8 support (minimum is now 3.9), since the codebase already relied on builtin generic type hints
(e.g.
tuple[...]) that are not subscriptable at runtime on 3.8 - Migrated packaging metadata from the legacy
setup.cfgto a PEP 621[project]table inpyproject.toml(versionandreadmeremain dynamic, sourced frompyntbci.__version__andREADME.md/CHANGELOG.mdrespectively, as before); verified the built sdist/wheel metadata and bundled files are unchanged
Fixed
- Fixed
BayesStoppinginstoppingcheck fitted if score-based - Fixed
itrinutilitiesoutput shape is input shape - Fixed retaining dtype in
stimulus - Fixed
DistributionStoppinginstoppingnot checking fitted status whentrained=False - Fixed
AggregateGateingatesmodifying itsaggregateparameter in__init__, which broke scikit-learnclone() - Fixed
rCCAinclassifiersdoing parameter resolution and computation in__init__instead offit, which left the estimator in a stale, inconsistent state afterset_params() - Fixed
DistributionStoppinginstoppingvalidatingdistributioneagerly in__init__instead offit - Fixed
correlationinutilities,encoding_matrixinutilities(stimulusand length-1length/stridelists),itrinutilities,get_TineCCAofclassifiers, andtransforminCCAoftransformersall mutating their input arguments in place as a side effect - Fixed
gamma_x/gamma_yregularization inCCAoftransformerssilently computing wrong (asymmetric, not positive semi-definite) covariance matrices whenever a per-feature array (rather than a single scalar) was used; scalargamma_x/gamma_ybehavior is unchanged - Fixed
examples/and tests pre-computing an unseededyexternally and passing it intogenerate_c_vepofeeg, which bypassedeeg's own seeded label assignment and maderandom_statenot actually reproduce the data;generate_c_vepitself was already correctly reproducible whenyis left to be generated internally (i.e. by passingn_classesinstead of a pre-computedy) - Fixed
gammatoneinenvelopenot applying its lowpass filter to the envelope at all (filtfiltwas called with the denominator coefficients replaced by1, i.e. an FIR-only pass), and switched that filter to second-order sections (sosfiltfilt) since the transfer-function (b/a) form of the actual (high-order) filter is numerically unstable and producedNaNonce the filter was applied at all - Fixed
DistributionStoppinginstoppingswapping the wrong axis when moving the target class's score to index 0 before fitting the non-target score distribution (trained=True), which corrupted every fitted distribution and could raise anIndexError - Fixed
BayesStoppinginstoppingmutating its owntarget_pf/target_pdparameters as a side effect ofpredict()(methodsbds1/bds2), which meant repeatedpredict()calls could return different results andclone()/get_params()no longer reflected the original estimator after a prediction; the (per-prediction) target adjustment is now local instead, and reported withwarnings.warninstead ofprint - Fixed
BayesStoppinginstopping(method="bds2") raising an unguardedIndexErrorwhen no segment jointly satisfies both thetarget_pfandtarget_pdconstraints; now falls back to the most conservative (last) segment - Fixed
CriterionStoppinginstoppingsilently producingnanscores (and thus a meaninglessstop_time_) whenn_trials < n_foldsleft some cross-validation folds with no test data; now raises an assertion instead - Fixed
topoplotinplottingraising aValueErrorwhen reading a.locfile with a trailing newline - Fixed
optimize_layout_incrementalinstimulususing the unseeded globalnp.random.permutationfor its random initial layouts, unlike every other randomized function in the library; added arandom_stateparameter - Fixed minor internal consistency issues:
AggregateGate/DifferenceGateingatesnow use the sameClassifierMixin, BaseEstimatorMRO order as every other estimator in the library;CriterionStopping.predictinstoppingnow returnsint64(notfloat64) for unstopped (-1) trials, matching every other stopping class;DistributionStoppinginstoppingnow implements__sklearn_is_fitted__instead of checking a private attribute directly throughcheck_is_fitted, matchingEnsembleinclassifiers - Fixed
stimplot'supsampledocstring inplotting, copy-pasted fromeventplotand referring to a non-existent "event time-series" - Fixed
eventplotinplottingnot validating thatevents(if provided) has one name per row ofE, unlike the equivalentlabelscheck instimplot - Fixed the
documentationCI workflow committing and pushing togh-pageson pull requests as well as pushes tomain; the build now only deploys onpush, and still runs as a build-only check on pull requests - Fixed
test_correlation_faster_corrcoefin the test suite being a wall-clock timing comparison that could fail under CI load for reasons unrelated to the implementation; it is now skipped by default and kept for manual benchmarking only - Fixed
pinvinutilitiescomputingU @ diag(1/d) @ Vhinstead of the true Moore-Penrose pseudo-inverseVh.T @ diag(1/d) @ U.T; both are equivalent (and both were already correct) for the symmetric covariance matricespinvis used on internally inCCAoftransformers, but the old formula silently returned a wrong-shaped, mathematically incorrect result for any general (non-symmetric or non-square) matrix - Improved performance of
euclideaninutilities(vectorized, was an O(n_A * n_B) Python loop),decoding_matrixandencoding_matrixinutilities(avoid computing and discarding the wrapped-around part ofnp.rollon every window), the inverse square root inCCAoftransformers(uses the symmetric eigendecomposition instead of the general-purposescipy.linalg.sqrtm, which also removes the need to discard spurious imaginary numerical noise withnp.real),is_gold_codeinstimulus(replaced the O(n_classes^2 * n_bits) loop ofnp.rollcalls with a single vectorized correlation over all circular shifts, gathered by indexing into two concatenated code cycles),transforminCCAoftransformersfor 3D input (batched matmul directly on the 3D array instead of a transpose+reshape that forced a full copy of the data on every call),_compute_difference_scoresinDifferenceGateofgates(replaced the Python double loop over class pairs with a singlenp.triu_indicesgather), andtopoplotinplotting(replaced the Python double loop over the 300x300 interpolation grid that masked points outside the head radius with a single vectorized broadcast comparison) - Fixed
decision_function/predictineCCA/rCCAofclassifierssilently returning a meaningless, always-the- same-class prediction (argmaxover a NaN or all-equal-score row) instead of raising, whenrunning=Truewas called with a zero-sample chunk on the very first call of a sequence (before any real data had been observed); now asserts at least 1 sample is available before the first score can be computed. A zero-sample chunk after real data has already been observed remains a well-defined no-op, as intended
Version 1.8.3 (21-05-2025)
Added
- Added
approachinBayesStoppingofstopping
Changed
- Refactor
rCCAofclassifiers
Fixed
- Fixed
astypein all modules - Fixed
decoding_matrixinrCCAofclassifiersonly called if required - Fixed
encoding_strideinrCCAofclassifiersto allow list input likeencoding_length - Fixed docs
Version 1.8.2 (16-04-2025)
Added
Changed
- Changed
strideinencoding_matrixofutilitiesto allow list input likelength
Fixed
- Fixed
cca_channelsineCCAofclassifiers - Fixed
lags=[...]andensemble=Truecombination ineCCAofclassifiers
Version 1.8.1 (11-03-2025)
Added
- Added
labelstostimplotinplotting
Changed
- Changed
pinvinutilitiesto work with non-square matrices
Fixed
- Fixed array
encoding_lengthofrCCAinclassifiers - Fixed
smooth_widthofCriterionStoppinginstopping - Fixed
stop_time_ofCriterionStoppinginstopping - Fixed
gamma_xandgamma_yregularization ofCCAintransformers
Version 1.8.0 (08-11-2024)
Added
- Added
min_timeto stopping methods instopping - Added
max_timetoCriterionStoppinginstopping
Changed
Fixed
- Fixed fit exception in
DistributionStoppinginstopping
Version 1.7.0 (22-10-2024)
Added
- Added
tmintoencoding_matrixinutilities - Added
tmintorCCAinclassifiers
Changed
Fixed
Version 1.6.1 (10-10-2024)
Added
- Added
find_neighboursandfind_worst_neighbourtoutilities - Added
optimize_subset_clusteringtostimulus - Added
optimize_layout_incrementaltostimulus - Added
stimplottoplotting
Changed
- Changed order of tutorials and examples
Fixed
- Fixed
max_timein allstoppingclasses to deal with "partial" segments
Version 1.5.0 (30-09-2024)
Added
- Added
ValueStoppingtostopping - Added parameter
distributiontoDistributionStoppinginstopping
Changed
- Changed
envelope_rmstormsinenvelope - Changed
envelope_gammatonetogammatoneinenvelope - Changed
BetaStoppinginstoppingtoDistributionStopping
Fixed
- Fixed default
CCAintransformerstoinv, notpinv - Fixed
seedformake_m_sequenceandmake_gold_codesinstimulusto not be full zeros
Version 1.4.1 (19-07-2024)
Added
Changed
Fixed
- Fixed default
CCAintransformerstoinv, notpinv
Version 1.4.0 (15-07-2024)
Added
- Added
pinvtoutilities - Added
alpha_xtoCCAintranformers - Added
alpha_ytoCCAintranformers - Added
alpha_xtoeCCAinclassifiers - Added
alpha_ttoeCCAinclassifiers - Added
alpha_xtorCCAinclassifiers - Added
alpha_mtorCCAinclassifiers - Added
squeeze_componentstorCCA,eCCA,eTRCAin `classifiers'
Changed
- Changed
numpytyping ofnp.ndarraytoNDArray - Changed
cca_andtrca_attributes to belistalways ineCCA,rCCAandeTRCA - Changed
scipy.linalg.invtopyntbci.utilities.pinvinCCAoftransformers - Changed
decision_functionandpredictofclassifiersto return without additional dimension for components ifn_components=1andsqueeze_components=True, both of which are defaults
Fixed
Version 1.3.3 (01-07-2024)
Added
Changed
Fixed
- Fixed components bug in
decision_functionofeCCAinclassifiers
Version 1.3.2 (23-06-2024)
Added
- Added
cov_estimator_ttoeCCAinclassifiers
Changed
- Changed separate covariance estimators for data and templates in
eCCAofclassifiers
Fixed
Version 1.3.1 (23-06-2024)
Added
Changed
Fixed
- Fixed zero division
eventplotinplotting - Fixed event order duration event
event_matrixinutilities
Version 1.3.0 (18-06-2024)
Added
- Removed
gatingofrCCAinclassifiers - Removed
_scoremethods inclassifiers - Added
n_componentsineCCAinclassifiers - Added
n_componentsineTRCAinclassifiers
Changed
- Changed "bes" to "bds" in
BayesStoppinginstoppingin line with publication - Changed
lxandlytogamma_xandgamma_yiofeCCAinclassifiers - Changed
gatingtogates - Changed
TRCAintransformersto deal with one-class data only - Changed
_get_Ttoget_Tin allclassifiers
Fixed
Version 1.2.0 (18-04-2024)
Added
Changed
- Changed
lxofrCCAinclassifierstogamma_x, which ranges between 0-1, such that the parameter represents shrinkage regularization - Changed
lyofrCCAinclassifierstogamma_m, which ranges between 0-1, such that the parameter represents shrinkage regularization - Changed
lxofCCAintransformerstogamma_x, which ranges between 0-1, such that the parameter represents shrinkage regularization - Changed
lyofCCAintransformerstogamma_y, which ranges between 0-1, such that the parameter represents shrinkage regularization
Fixed
Version 1.1.0 (17-04-2024)
Added
- Added
envelopemodule containingenvelope_gammatoneandenvelope_rmsfunctions - Added
CriterionStoppingtostoppingfor some static stopping methods
Changed
- Changed default value of
encoding_lengthinrCCAofclassifiersof 0.3 to None, which is equivalent to 1 / fs
Fixed
- Fixed variable
fsof type np.ndarray instead of int in examples, tutorials, and pipelines - Fixed double call to
decoding_matrixinfitofrCCAinclassifiers
Version 1.0.1 (26-03-2024)
Added
- Added
set_stimulus_amplitudesforrCCAinclassifiers
Changed
Fixed
- Fixed dependency between
stimulusandamplitudesinrCCAofclassifiers
Version 1.0.0 (22-03-2024)
Added
- Added variable
decoding_lengthofrCCAinclassifiercontrolling the length of a learned spectral filter - Added variable
decoding_strideofrCCAinclassifiercontrolling the stride of a learned spectral filter - Added function
decoding_matrixinutilitiesto phase-shit the EEG data maintaining channel-prime ordering - Added variable
encoding_strideofrCCAinclassifiercontrolling the stride of a learned temporal response - Added module
gatingwith gating functions, for instance for multi-component or filterbank analysis - Added variable
gatingofrCCAinclassifierto deal with multiple CCA components - Added variable
gatingofEnsembleinclassifier, for example to deal with a filterbank
Changed
- Changed variable
codesofrCCAinclassifierstostimulus - Changed variable
transient_sizeofrCCAinclassifierstoencoding_length - Changed class
FilterBankinclassifierstoEnsemble - Changed function
structure_matrixinutilitiestoencoding_matrix
Fixed
- Fixed several documentation issues
Version 0.2.5 (29-02-2024)
Added
- Added function
eventplotinplottingto visualize an event matrix - Added variable
runningofcovarianceinutilitiesto do incremental running covariance updates - Added variable
runningofCCAintransformersto use a running covariance for CCA - Added variable
cov_estimator_xandcov_estimator_mofrCCAinclassifiersto change the covariance estimator - Added event definitions "on", "off" and "onoff" for
event_matrixinutilities
Changed
- Changed the CCA optimization to contain separate computations for Cxx, Cyy and Cxy
- Changed the CCA to allow separate BaseEstimators for Cxx and Cyy
Fixed
- Fixed zero-division in
itrinutilities
Version 0.2.4
Added
- Added CCA cumulative/incremental average and covariance
- Added
amplitudes(e.g. envelopes) instructure_matrixofutilities - Added
max_timeto classes instoppingto allow a maximum stopping time for stopping methods - Added brainamp64.loc to capfiles
- Added plt.show() in all examples
Changed
Fixed
Version 0.2.3
Added
Changed
- Changed example pipelines to include more examples and explanation
- Changed tutorial pipelines to include more examples and explanation
Fixed
- Fixed several documentation issues
Version 0.2.2
Added
- Added class
TRCAtotransformers - Added class
eTRCAtoclassifiers - Added parameter
ensembleto classes inclassifiersto allow a separate spatial filter per class
Changed
- Changed package name from PyNT to PyntBCI to avoid clash with existing pynt library
- Changed filter order in
filterbankofutilitiesto be optimized given input parameters
Fixed
- Fixed issue in
rCCAofclassifierscausing novel events in structure matrix when "cutting cycles" - Fixed
correlationto not contain mutable input variables
Version 0.2.1
Added
- Added
tests - Added tutorials
Changed
- Changed
rCCAto work with non-binary events instead of binary only
Fixed
Version 0.2.0
Added
- Added dynamic stopping: classes
MarginStopping,BetaStopping, andBayesStoppingin modulestopping - Added value inner for variable
score_metricin 'classifiers'
Changed
- Changed all data shapes from (channels, samples, trials) to (trials, channels, samples)
- Changed all codes shapes from (samples, classes) to (classes, samples)
- Changed all decision functions to similarity, not distance (e.g., Euclidean), to always maximize
Fixed
- Fixed zero-mean templates in
eCCAandrCCAofclassifiers
Version 0.1.0
Added
- Added
Filterbanktoclassifiers
Changed
- Changed classifiers all have
predictanddecision_functionmethods inclassifiers
Fixed
Version 0.0.2
Added
Changed
- Changed CCA method from sklearn to custom covariance method
Fixed
Version 0.0.1
Added
- Added
eCCAtemplate metrics: average, median, OCSVM - Added
eCCAspatial filter options: all channels or subset
Changed
Fixed
Version 0.0.0
Added
- Added
CCAintransformers - Added
rCCAinclassifiers - Added
eCCAinclassifier
Changed
Fixed
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyntbci-1.9.0.tar.gz.
File metadata
- Download URL: pyntbci-1.9.0.tar.gz
- Upload date:
- Size: 99.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9735fd575035d989cb7fd06c38c4286ce9c6ba1c09d8b12e947b8b86c9db3788
|
|
| MD5 |
ac6ec186f247fe07c0a9b39557eff18a
|
|
| BLAKE2b-256 |
42f780f539c5ba604fe7000453d03fac881ecd1ae9f3d69e4221d0be1c6be6ae
|
File details
Details for the file pyntbci-1.9.0-py3-none-any.whl.
File metadata
- Download URL: pyntbci-1.9.0-py3-none-any.whl
- Upload date:
- Size: 90.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d3fff38b097e9a28a92a33a130444f77469d9af37c9e9e7c8b12881f8762091
|
|
| MD5 |
8d09beadf186500c2e928f3982565650
|
|
| BLAKE2b-256 |
db8a21c16658418e971a4b2d47cefb60818b7aa050a256bb431f8cbbe4306637
|