NeuroKit.py
NeuroKit.py copied to clipboard
How to solve this error??
hi, i'm planning to use a neurokit example. But I am not able to follow the example due to an error. How can I fix it? I changed the scikit-learn version 0.23.2 to 0.20.1 to fix the error, but error was still existed.
Please look at below code and error message.
Import packages
import neurokit as nk import pandas as pd import numpy as np import seaborn as sns
Download data
df = pd.read_csv("https://raw.githubusercontent.com/neuropsychology/NeuroKit.py/master/examples/Bio/bio_100Hz.csv")
Plot it
df.plot()
Process the signals
bio = nk.bio_process(ecg=df['ECG'], rsp=df['RSP'], eda=df['EDA'], add=df['Photosensor'], sampling_rate=100)
bio = nk.bio_process(df["ECG"], df["RSP"], df["EDA"], df["Photosensor"], sampling_rate=100)
Plot the processed dataframe, normalizing all variables for viewing purpose
nk.z_score[bio['df']].plot()
ValueError: Digital filter critical frequencies must be 0 < Wn < 1
Hi @vitarfast, I'd suggest using NeuroKit2 as this one is not maintained anymore. Find more info at https://github.com/neuropsychology/NeuroKit