Plotting#
Plot helpers shared by notebooks.
Functions:
| Name | Description |
|---|---|
plot_history |
Plot training/validation accuracy and loss curves. |
plot_channel_class_average |
Plot the class-average signal for one EEG channel. |
plot_history
#
Plot training/validation accuracy and loss curves.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
history
|
dict[str, list[float]]
|
Keras-like history dictionary with accuracy/loss lists. |
required |
title
|
str
|
Prefix used in subplot titles. |
required |
Returns:
| Type | Description |
|---|---|
Any
|
Matplotlib figure containing accuracy and loss subplots. |
plot_channel_class_average
#
Plot the class-average signal for one EEG channel.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
X
|
ndarray
|
EEG trials shaped |
required |
y
|
ndarray
|
Raw BCI cue labels |
required |
channel
|
int
|
Channel index to visualize. |
8
|
Returns:
| Type | Description |
|---|---|
Any
|
Matplotlib figure with one line per class. |