Python Forum
Simple Variable Saving in Loop
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Variable Saving in Loop
#3
Hi Michael,

Thanks for the reply.

I suppose what I am trying to figure out is actually just this simple question:
1. I have three larger conditions [all, brain, artifact]. I want to create a variable to save classification accuracies for each of these.
2. I have five frequency bands "j" in which I've preprocessed my data [0,1,2,3,4].
3. I also have many subjects [n...nx].
4. I want to loop through the subjects for each band, for each condition and basically save a variable at the end which gives me back [conditions x freq][subjects]. At the moment, I have no problem when using a single freq band to get [conditions][subjects], but I can't figure out how to inlay the frequency bands to expand the variable in Python. This must of course be easy! I'm just a bit rusty Shifty
Reply


Messages In This Thread
Simple Variable Saving in Loop - by DevDev - Mar-08-2021, 12:17 PM
RE: Simple Variable Saving in Loop - by michael1789 - Mar-08-2021, 04:10 PM
RE: Simple Variable Saving in Loop - by DevDev - Mar-09-2021, 10:03 AM
RE: Simple Variable Saving in Loop - by Fre3k - Mar-09-2021, 07:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Variable definitions inside loop / could be better? gugarciap 2 514 Jan-09-2024, 11:11 PM
Last Post: deanhystad
  How to create a variable only for use inside the scope of a while loop? Radical 10 1,980 Nov-07-2023, 09:49 AM
Last Post: buran
  Nested for loops - help with iterating a variable outside of the main loop dm222 4 1,689 Aug-17-2022, 10:17 PM
Last Post: deanhystad
  loop (create variable where name is dependent on another variable) brianhclo 1 1,187 Aug-05-2022, 07:46 AM
Last Post: bowlofred
  Multiple Loop Statements in a Variable Dexty 1 1,246 May-23-2022, 08:53 AM
Last Post: bowlofred
Big Grin Variable flag vs code outside of for loop?(Disregard) cubangt 2 1,221 Mar-16-2022, 08:54 PM
Last Post: cubangt
  How to save specific variable in for loop in to the database? ilknurg 1 1,193 Mar-09-2022, 10:32 PM
Last Post: cubangt
  How to add for loop values in variable paulo79 1 1,499 Mar-09-2022, 07:20 PM
Last Post: deanhystad
  Using Excel Cell As A Variable In A Loop knight2000 7 4,263 Aug-25-2021, 12:43 PM
Last Post: snippsat
  saving each iteration of a loop sgcgrif3 3 6,845 Jul-27-2021, 01:02 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020