From beddb3cd9c45f8f27c4b87d835fa2ce03a5d5b6e Mon Sep 17 00:00:00 2001 From: Vladimir Mikheev Date: Sun, 15 Dec 2024 21:06:35 +0100 Subject: [PATCH] no file --- scripts/gen_data.jl | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 scripts/gen_data.jl diff --git a/scripts/gen_data.jl b/scripts/gen_data.jl deleted file mode 100644 index bed79c2..0000000 --- a/scripts/gen_data.jl +++ /dev/null @@ -1,26 +0,0 @@ -using UnfoldSim, DataFrames, Random -using GeometryBasics -function gen_data() - d1, evts = UnfoldSim.predef_eeg(n_repeats = 120, noiselevel = 25; return_epoched = true) - dataS = permutedims(repeat(d1, 1, 1, 64), (3, 1, 2)) - dataS = dataS .+ rand(dataS) - - evts = insertcols( - evts, - :saccade_amplitude => rand(nrow(evts)) .* 15, - :luminance => rand(nrow(evts)) .* 100, - :contrast => rand(nrow(evts)), - :string => shuffle( - repeat( - ["stringsuperlong", "stringshort", "stringUPPERCASE", "stringEXCITED!!!!"], - outer = div(nrow(evts), 4), - ), - ), - :animal => shuffle(repeat(["cat", "dog"], outer = div(nrow(evts), 2))), - :fruit => shuffle(repeat(["orange", "banana"], outer = div(nrow(evts), 2))), - :color => shuffle(repeat(["black", "white"], outer = div(nrow(evts), 2))), - ) - - positions = rand(Point2f, size(dataS, 1)) - return dataS, evts, positions -end