unfoldtoolbox / unfoldsim.jl Goto Github PK
View Code? Open in Web Editor NEWSimulate EEG / ERP data with overlap, non-linear effects, multiple regression
License: MIT License
Simulate EEG / ERP data with overlap, non-linear effects, multiple regression
License: MIT License
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix
on this issue.
I'll open a PR within a few hours, please be patient!
onset = LogNormalOnset(μ = 5, σ = 5.1)
. Extrema parameters should be tested.label = "($μ,$σ,$offset,$truncate_upper)"
. Hard to readWe have to profile a run to see why we are relatively slow (~200ms for simulating 30subjects, 100 trials with LMMs). I want to be much faster :)
e.g.
generate(SingleSubjectDesign(;) |> x-> RepeatDesign(x,7))
add error message
Before 1.0 we should rename a few things:
simulate
and generate
are used in different places, not clear why not same name for everything. Makes sense to me, you can simulate a design, simulate an EEG, simulate noiserand_onsets
actually delivers distances between onsets, generate(rng,onset,...)
generates the onsetsLet's collect as we go
Currently not clear how to best do something like
A -> B -> C
as three different events, or even worse, B follows A in 80% of cases, etc.
I will elaborate them later in the thread as we proceed further.
Feel free to add your own ideas!
right now we can only do pseudo-continuous via discretizing [1,2,3,4,5] - would be good to have real continuous sampling ability
Simulate events and EEG data based on
split this line in a new subfunction, to allow extraction of simulated BLUPs
Luis, please dont do any of those - you have your project/thesis! but if you have thoughts happy to hear them :)
@all-contributors please add @behinger for bug,code,doc,ideas,infra,maintenance,review,test,tutorial
function simulate(args...; kwargs...)
@warn "No random generator defined, used the default (`Random.MersenneTwister(1)`) with a fixed seed. This will always return the same results and the user is strongly encouraged to provide their own random generator!"
simulate(MersenneTwister(1), args...; kwargs...)
end
on second thought, that wasnt our best idea. As soon as you misspecify the simulate input in any way (e.g. NoNoise instead of NoNoise()) it runs into an infinite loop
When creating a MultiSubjectDesign without giving arguments for subjects_between
, items_between
and both_within
(their default is nothing), the generate
function gives a MethodError as in the following example:
The problem originates from the following line in the generate
function:
Line 89 in 5e81675
Suggestions:
Issue to call the JuliaBot
@JuliaRegistrator register
Release notes:
the bug I have seen in @vladdez notebook with the event_order_function
appeared again. I have to test and drill it down further, but it appeared now with a sequence+repetition design model. Unclear if without these it would appear too
clearly the conditions are not separated correctly.
There is a code example on the main page: https://github.com/unfoldtoolbox/UnfoldSim.jl
data,evts = UnfoldSim.predef_eeg(;n_trials=20,noiselevel=0.8)
I got this error:
But everything works after:
data, evts = UnfoldSim.predef_eeg(;n_repeats=20, noiselevel=0.8, return_epoched=true)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.