Closed chongxi closed 4 years ago
After loading the decoder and score it, we can use it to decode spike count vectors
dec.predict(dec.test_X[:3, :])
and smooth it using different parameters and rescore it (using r2_score
)
predicted_y = dec.predict(dec.test_X)
smoothed_y = smooth(predicted_y, 20)
new_score = dec.r2_score(smoothed_y, dec.test_y)
This will dramatically save time in an online experiment and simplify the BMI API.
Save after
partition
, but beforefit
Train a decoder:
Load and run a decoder in real-time for BMI