Datasets:

Modalities:
Audio
Libraries:
Datasets
sanjay7178 commited on
Commit
e8eaad6
·
verified ·
1 Parent(s): 5fdccf8

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +152 -0
  2. count.md +37 -0
  3. count.py +49 -0
  4. emotion_files.csv +0 -0
  5. fif_file_analysis4.csv +0 -0
  6. make7.py +217 -0
  7. split_fifs/919513/919513-mapped_epoch_10_asmrraw_interval_11.raw.fif +0 -0
  8. split_fifs/919513/919513-mapped_epoch_10_asmrraw_interval_5.raw.fif +0 -0
  9. split_fifs/919513/919513-mapped_epoch_10_asmrraw_interval_9.raw.fif +0 -0
  10. split_fifs/919513/919513-mapped_epoch_12_labelraw_interval_14.raw.fif +0 -0
  11. split_fifs/919513/919513-mapped_epoch_12_labelraw_interval_17.raw.fif +0 -0
  12. split_fifs/919513/919513-mapped_epoch_12_labelraw_interval_27.raw.fif +0 -0
  13. split_fifs/919513/919513-mapped_epoch_12_labelraw_interval_29.raw.fif +0 -0
  14. split_fifs/919513/919513-mapped_epoch_13_saddogsraw_interval_17.raw.fif +0 -0
  15. split_fifs/919513/919513-mapped_epoch_13_saddogsraw_interval_27.raw.fif +0 -0
  16. split_fifs/919513/919513-mapped_epoch_13_saddogsraw_interval_6.raw.fif +0 -0
  17. split_fifs/919513/919513-mapped_epoch_14_labelraw_interval_1.raw.fif +0 -0
  18. split_fifs/919513/919513-mapped_epoch_15_labelraw_interval_0.raw.fif +0 -0
  19. split_fifs/919513/919513-mapped_epoch_15_labelraw_interval_10.raw.fif +0 -0
  20. split_fifs/919513/919513-mapped_epoch_15_labelraw_interval_18.raw.fif +0 -0
  21. split_fifs/919513/919513-mapped_epoch_15_labelraw_interval_31.raw.fif +0 -0
  22. split_fifs/919513/919513-mapped_epoch_15_labelraw_interval_4.raw.fif +0 -0
  23. split_fifs/919513/919513-mapped_epoch_15_labelraw_interval_7.raw.fif +0 -0
  24. split_fifs/919513/919513-mapped_epoch_16_conjuringraw_interval_0.raw.fif +0 -0
  25. split_fifs/919513/919513-mapped_epoch_16_conjuringraw_interval_1.raw.fif +0 -0
  26. split_fifs/919513/919513-mapped_epoch_16_conjuringraw_interval_11.raw.fif +0 -0
  27. split_fifs/919513/919513-mapped_epoch_16_conjuringraw_interval_24.raw.fif +0 -0
  28. split_fifs/919513/919513-mapped_epoch_16_conjuringraw_interval_26.raw.fif +0 -0
  29. split_fifs/919513/919513-mapped_epoch_16_conjuringraw_interval_28.raw.fif +0 -0
  30. split_fifs/919513/919513-mapped_epoch_18_labelraw_interval_15.raw.fif +0 -0
  31. split_fifs/919513/919513-mapped_epoch_18_labelraw_interval_18.raw.fif +0 -0
  32. split_fifs/919513/919513-mapped_epoch_18_labelraw_interval_22.raw.fif +0 -0
  33. split_fifs/919513/919513-mapped_epoch_18_labelraw_interval_4.raw.fif +0 -0
  34. split_fifs/919513/919513-mapped_epoch_19_trainspottingraw_interval_18.raw.fif +0 -0
  35. split_fifs/919513/919513-mapped_epoch_19_trainspottingraw_interval_20.raw.fif +0 -0
  36. split_fifs/919513/919513-mapped_epoch_1_ratatChaseSceneraw_interval_10.raw.fif +0 -0
  37. split_fifs/919513/919513-mapped_epoch_1_ratatChaseSceneraw_interval_20.raw.fif +0 -0
  38. split_fifs/919513/919513-mapped_epoch_1_ratatChaseSceneraw_interval_21.raw.fif +0 -0
  39. split_fifs/919513/919513-mapped_epoch_1_ratatChaseSceneraw_interval_26.raw.fif +0 -0
  40. split_fifs/919513/919513-mapped_epoch_1_ratatChaseSceneraw_interval_27.raw.fif +0 -0
  41. split_fifs/919513/919513-mapped_epoch_1_ratatChaseSceneraw_interval_3.raw.fif +0 -0
  42. split_fifs/919513/919513-mapped_epoch_21_labelraw_interval_19.raw.fif +0 -0
  43. split_fifs/919513/919513-mapped_epoch_21_labelraw_interval_29.raw.fif +0 -0
  44. split_fifs/919513/919513-mapped_epoch_22_angrydogsraw_interval_1.raw.fif +0 -0
  45. split_fifs/919513/919513-mapped_epoch_22_angrydogsraw_interval_10.raw.fif +0 -0
  46. split_fifs/919513/919513-mapped_epoch_22_angrydogsraw_interval_2.raw.fif +0 -0
  47. split_fifs/919513/919513-mapped_epoch_22_angrydogsraw_interval_4.raw.fif +0 -0
  48. split_fifs/919513/919513-mapped_epoch_23_labelraw_interval_1.raw.fif +0 -0
  49. split_fifs/919513/919513-mapped_epoch_23_labelraw_interval_2.raw.fif +0 -0
  50. split_fifs/919513/919513-mapped_epoch_3_labelraw_interval_12.raw.fif +0 -0
README.md ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ==================================================
3
+ FIF FILES ANALYSIS REPORT
4
+ ==================================================
5
+
6
+ 1. OVERALL STATISTICS
7
+ ------------------------------
8
+ Total .fif files found: 13443
9
+ Number of subjects: 27
10
+ Number of directories: 27
11
+
12
+ 2. FILES PER SUBJECT
13
+ ------------------------------
14
+ Subject 062000: 424 files
15
+ Subject 103918: 525 files
16
+ Subject 145098: 532 files
17
+ Subject 162636: 519 files
18
+ Subject 192176: 530 files
19
+ Subject 222299: 532 files
20
+ Subject 254362: 530 files
21
+ Subject 265350: 519 files
22
+ Subject 440514: 46 files
23
+ Subject 479015: 511 files
24
+ Subject 541414: 537 files
25
+ Subject 580357: 514 files
26
+ Subject 587748: 391 files
27
+ Subject 598027: 526 files
28
+ Subject 665252: 529 files
29
+ Subject 687106: 524 files
30
+ Subject 701527: 355 files
31
+ Subject 712563: 518 files
32
+ Subject 750667: 526 files
33
+ Subject 778279: 526 files
34
+ Subject 825255: 487 files
35
+ Subject 859899: 506 files
36
+ Subject 901666: 514 files
37
+ Subject 919513: 518 files
38
+ Subject 946416: 528 files
39
+ Subject 979253: 752 files
40
+ Subject Zacker: 524 files
41
+
42
+ 3. FILES PER DIRECTORY
43
+ ------------------------------
44
+ ../split_fifs/062000: 424 files
45
+ ../split_fifs/103918: 525 files
46
+ ../split_fifs/145098: 532 files
47
+ ../split_fifs/162636: 519 files
48
+ ../split_fifs/192176: 530 files
49
+ ../split_fifs/222299: 532 files
50
+ ../split_fifs/254362: 530 files
51
+ ../split_fifs/265350: 519 files
52
+ ../split_fifs/440514: 46 files
53
+ ../split_fifs/479015: 511 files
54
+ ../split_fifs/541414: 537 files
55
+ ../split_fifs/580357: 514 files
56
+ ../split_fifs/587748: 391 files
57
+ ../split_fifs/598027: 526 files
58
+ ../split_fifs/665252: 529 files
59
+ ../split_fifs/687106: 524 files
60
+ ../split_fifs/701527: 355 files
61
+ ../split_fifs/712563: 518 files
62
+ ../split_fifs/750667: 526 files
63
+ ../split_fifs/778279: 526 files
64
+ ../split_fifs/825255: 487 files
65
+ ../split_fifs/859899: 506 files
66
+ ../split_fifs/901666: 514 files
67
+ ../split_fifs/919513: 518 files
68
+ ../split_fifs/946416: 528 files
69
+ ../split_fifs/979253: 752 files
70
+ ../split_fifs/Zacker: 524 files
71
+
72
+ 4. FILES PER EMOTION
73
+ ------------------------------
74
+ Emotion ID 0 neutral: 2971 files
75
+ Emotion ID 1 excited: 634 files
76
+ Emotion ID 2 happy: 842 files
77
+ Emotion ID 3 relaxed: 868 files
78
+ Emotion ID 4 sad: 824 files
79
+ Emotion ID 5 horror: 854 files
80
+ Emotion ID 6 angry: 887 files
81
+ Emotion ID 7 disgusted: 666 files
82
+
83
+ Utility files (rating/label/navon): 3813 files
84
+
85
+ 5. FILES PER VIDEO TYPE
86
+ ------------------------------
87
+ ChampDeath: 160 files
88
+ NBA: 389 files
89
+ angrydogs: 528 files
90
+ asmr: 217 files
91
+ conjuring: 887 files
92
+ kenMiles: 315 files
93
+ label: 3334 files
94
+ meditation: 93 files
95
+ motivationalAuthor: 868 files
96
+ navon: 41 files
97
+ neutralVideo: 2971 files
98
+ ratatChaseScene: 245 files
99
+ rating: 438 files
100
+ sadBaby1: 62 files
101
+ saddogs: 632 files
102
+ scooby: 842 files
103
+ thepiano: 138 files
104
+ trainspotting: 769 files
105
+ waterfall: 514 files
106
+
107
+ 6. FILES PER EPOCH
108
+ ------------------------------
109
+ Epoch 1: 954 files
110
+ Epoch 2: 240 files
111
+ Epoch 3: 822 files
112
+ Epoch 4: 824 files
113
+ Epoch 5: 158 files
114
+ Epoch 6: 861 files
115
+ Epoch 7: 924 files
116
+ Epoch 8: 162 files
117
+ Epoch 9: 797 files
118
+ Epoch 10: 775 files
119
+ Epoch 11: 131 files
120
+ Epoch 12: 825 files
121
+ Epoch 13: 798 files
122
+ Epoch 14: 103 files
123
+ Epoch 15: 826 files
124
+ Epoch 16: 825 files
125
+ Epoch 17: 293 files
126
+ Epoch 18: 792 files
127
+ Epoch 19: 713 files
128
+ Epoch 20: 101 files
129
+ Epoch 21: 759 files
130
+ Epoch 22: 666 files
131
+ Epoch 23: 94 files
132
+
133
+ 7. CSV FILE OUTPUTS
134
+ ------------------------------
135
+ 1. Full analysis file: fif_file_analysis.csv
136
+ 2. Emotion-only file: emotion_files.csv
137
+
138
+ Columns:
139
+ - file_path
140
+ - subject_id
141
+ - epoch
142
+ - video_type
143
+ - emotion_id
144
+ - emotion
145
+
146
+ 8. ADDITIONAL STATISTICS
147
+ ------------------------------
148
+ Average files per directory: 497.89
149
+ Average files per subject: 497.89
150
+
151
+ Emotion files: 9630 (71.6%)
152
+ Utility files: 3813 (28.4%)
count.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Total number of .fif files: 13503
3
+
4
+ Breakdown by directory:
5
+ --------------------------------------------------
6
+ 062000: 424 files
7
+ 103918: 525 files
8
+ 145098: 532 files
9
+ 162636: 519 files
10
+ 192176: 530 files
11
+ 222299: 532 files
12
+ 254362: 530 files
13
+ 265350: 519 files
14
+ 440514: 46 files
15
+ 479015: 511 files
16
+ 541414: 537 files
17
+ 580357: 514 files
18
+ 587748: 391 files
19
+ 598027: 526 files
20
+ 665252: 529 files
21
+ 687106: 524 files
22
+ 701527: 415 files
23
+ 712563: 518 files
24
+ 750667: 526 files
25
+ 778279: 526 files
26
+ 825255: 487 files
27
+ 859899: 506 files
28
+ 901666: 514 files
29
+ 919513: 518 files
30
+ 946416: 528 files
31
+ 979253: 752 files
32
+ Zacker: 524 files
33
+
34
+ Summary:
35
+ Number of directories with .fif files: 27
36
+ Average files per directory: 500.11
37
+ Directory with most files: 979253 (752 files)
count.py ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+ def count_fif_files(root_dir="split_fifs"):
4
+ """
5
+ Count total number of .fif files in directory and its subdirectories.
6
+ Also provides counts per subdirectory.
7
+ """
8
+ # Total count of .fif files
9
+ total_fif_count = 0
10
+ # Dictionary to store counts per subdirectory
11
+ subdir_counts = {}
12
+
13
+ # Walk through all directories
14
+ for dirpath, dirnames, filenames in os.walk(root_dir):
15
+ # Count .fif files in current directory
16
+ fif_files = [f for f in filenames if f.endswith('.raw.fif')]
17
+ count = len(fif_files)
18
+
19
+ if count > 0:
20
+ # Get relative path for cleaner output
21
+ rel_path = os.path.relpath(dirpath, root_dir)
22
+ if rel_path == '.':
23
+ rel_path = root_dir
24
+ subdir_counts[rel_path] = count
25
+ total_fif_count += count
26
+
27
+ # Print results
28
+ print(f"\nTotal number of .fif files: {total_fif_count}")
29
+ print("\nBreakdown by directory:")
30
+ print("-" * 50)
31
+
32
+ # Sort by directory name and print counts
33
+ for dir_name, count in sorted(subdir_counts.items()):
34
+ print(f"{dir_name}: {count} files")
35
+
36
+ # Additional statistics
37
+ print("\nSummary:")
38
+ print(f"Number of directories with .fif files: {len(subdir_counts)}")
39
+ if subdir_counts:
40
+ avg_files = total_fif_count / len(subdir_counts)
41
+ print(f"Average files per directory: {avg_files:.2f}")
42
+ max_dir = max(subdir_counts.items(), key=lambda x: x[1])
43
+ print(f"Directory with most files: {max_dir[0]} ({max_dir[1]} files)")
44
+
45
+ return total_fif_count, subdir_counts
46
+
47
+ if __name__ == "__main__":
48
+ # Run the count
49
+ total, counts = count_fif_files()
emotion_files.csv ADDED
The diff for this file is too large to render. See raw diff
 
fif_file_analysis4.csv ADDED
The diff for this file is too large to render. See raw diff
 
make7.py ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import pandas as pd
3
+ import re
4
+ from collections import defaultdict
5
+
6
+ def analyze_fif_paths(root_dir="split_fifs"):
7
+ """
8
+ Extract .fif file paths using regex and provide detailed analysis including emotion types.
9
+ """
10
+ # Define emotion mapping with corrected IDs
11
+ emotion_mapping = {
12
+ # Neutral (ID: 0)
13
+ 'neutralVideo': {'id': 0, 'emotion': 'neutral'},
14
+
15
+ # Excited (ID: 1)
16
+ 'ratatChaseScene': {'id': 1, 'emotion': 'excited'},
17
+ 'Kenmiles': {'id': 1, 'emotion': 'excited'},
18
+ 'NBA': {'id': 1, 'emotion': 'excited'},
19
+
20
+ # Happy (ID: 2)
21
+ 'scooby': {'id': 2, 'emotion': 'happy'},
22
+
23
+ # Happy (ID: 3)
24
+ 'motivationalAuthor': {'id': 3, 'emotion': 'motivated'},
25
+
26
+ # Relaxed (ID: 4)
27
+ 'waterfall': {'id': 4, 'emotion': 'relaxed'},
28
+ 'asmr': {'id': 4, 'emotion': 'relaxed'},
29
+ 'meditation': {'id': 4, 'emotion': 'relaxed'},
30
+
31
+ # Sad (ID: 5)
32
+ 'saddogs': {'id': 5, 'emotion': 'sad'},
33
+ 'sadbaby': {'id': 5, 'emotion': 'sad'},
34
+ 'ChampDeath': {'id': 5, 'emotion': 'sad'},
35
+ 'sadBaby1': {'id': 5, 'emotion': 'sad'},
36
+
37
+ # Horror (ID: 6)
38
+ 'conjuring': {'id': 6, 'emotion': 'horror'},
39
+
40
+ # Angry (ID: 7)
41
+ 'angrydogs': {'id': 7, 'emotion': 'angry'},
42
+ 'thepiano': {'id': 7, 'emotion': 'angry'},
43
+
44
+ # Disgusted (ID: 8)
45
+ 'trainspotting': {'id': 8, 'emotion': 'disgusted'},
46
+
47
+ # Utility files (no emotion)
48
+ 'label': {'id': -1, 'emotion': 'utility'},
49
+ 'rating': {'id': -1, 'emotion': 'utility'},
50
+ 'navon': {'id': -1, 'emotion': 'utility'}
51
+ }
52
+
53
+ # Dictionary to store analysis data
54
+ analysis = {
55
+ 'total_files': 0,
56
+ 'directory_counts': defaultdict(int),
57
+ 'subject_counts': defaultdict(int),
58
+ 'epoch_counts': defaultdict(int),
59
+ 'video_type_counts': defaultdict(int),
60
+ 'emotion_counts': defaultdict(int),
61
+ 'emotion_id_counts': defaultdict(int)
62
+ }
63
+
64
+ # List to store file paths
65
+ file_data = []
66
+
67
+ # Regex pattern for .fif files
68
+ pattern = r'(\d+|Zacker)-mapped_epoch_(\d+)_(\w+)raw_interval_(\d+)\.raw\.fif$'
69
+
70
+ # Walk through the directory
71
+ for dirpath, dirnames, filenames in os.walk(root_dir):
72
+ for filename in filenames:
73
+ match = re.match(pattern, filename)
74
+ if match:
75
+ full_path = os.path.join(dirpath, filename)
76
+
77
+ # Extract components from filename
78
+ subject_id = match.group(1)
79
+ epoch_num = match.group(2)
80
+ video_type = match.group(3)
81
+
82
+ # Get emotion data if video type is in mapping
83
+ emotion_info = emotion_mapping.get(video_type, {'id': -1, 'emotion': 'unknown'})
84
+ emotion_id = emotion_info['id']
85
+ emotion = emotion_info['emotion']
86
+
87
+ # Update counts
88
+ analysis['total_files'] += 1
89
+ analysis['directory_counts'][dirpath] += 1
90
+ analysis['subject_counts'][subject_id] += 1
91
+ analysis['epoch_counts'][epoch_num] += 1
92
+ analysis['video_type_counts'][video_type] += 1
93
+ if emotion != 'utility': # Only count actual emotions
94
+ analysis['emotion_counts'][emotion] += 1
95
+ analysis['emotion_id_counts'][emotion_id] += 1
96
+
97
+ # Add to file data
98
+ file_data.append({
99
+ 'file_path': full_path,
100
+ 'subject_id': subject_id,
101
+ 'epoch': int(epoch_num),
102
+ 'video_type': video_type,
103
+ 'emotion_id': emotion_id,
104
+ 'emotion': emotion
105
+ })
106
+
107
+ # Create DataFrame
108
+ df = pd.DataFrame(file_data)
109
+
110
+ # Sort the DataFrame
111
+ df = df.sort_values(['subject_id', 'epoch', 'file_path'])
112
+
113
+ # Save the full analysis to CSV
114
+ output_file = 'fif_file_analysis4.csv'
115
+ df.to_csv(output_file, index=False)
116
+
117
+ # Create a filtered DataFrame with only emotion-related files
118
+ emotion_df = df[df['emotion_id'] >= 0].copy()
119
+ emotion_output_file = 'emotion_files.csv'
120
+ emotion_df.to_csv(emotion_output_file, index=False)
121
+
122
+ # Print the analysis
123
+ print_analysis(analysis, df)
124
+
125
+ return df, analysis
126
+
127
+ def print_analysis(analysis, df):
128
+ """Print detailed analysis of the .fif files."""
129
+
130
+ print("\n" + "="*50)
131
+ print("FIF FILES ANALYSIS REPORT")
132
+ print("="*50)
133
+
134
+ # Overall Statistics
135
+ print("\n1. OVERALL STATISTICS")
136
+ print("-"*30)
137
+ print(f"Total .fif files found: {analysis['total_files']}")
138
+ print(f"Number of subjects: {len(analysis['subject_counts'])}")
139
+ print(f"Number of directories: {len(analysis['directory_counts'])}")
140
+
141
+ # Subject Breakdown
142
+ print("\n2. FILES PER SUBJECT")
143
+ print("-"*30)
144
+ for subject, count in sorted(analysis['subject_counts'].items()):
145
+ print(f"Subject {subject}: {count} files")
146
+
147
+ # Directory Breakdown
148
+ print("\n3. FILES PER DIRECTORY")
149
+ print("-"*30)
150
+ for directory, count in sorted(analysis['directory_counts'].items()):
151
+ rel_path = os.path.relpath(directory, "splif_fifs")
152
+ print(f"{rel_path}: {count} files")
153
+
154
+ # Emotion Analysis
155
+ print("\n4. FILES PER EMOTION")
156
+ print("-"*30)
157
+ # Define the exact order of emotions with their IDs
158
+ ordered_emotions = [
159
+ (0, 'neutral'),
160
+ (1, 'excited'),
161
+ (2, 'happy'),
162
+ (3, 'relaxed'),
163
+ (4, 'sad'),
164
+ (5, 'horror'),
165
+ (6, 'angry'),
166
+ (7, 'disgusted')
167
+ ]
168
+
169
+ for emotion_id, emotion_name in ordered_emotions:
170
+ if emotion_id in analysis['emotion_id_counts']:
171
+ count = analysis['emotion_id_counts'][emotion_id]
172
+ print(f"Emotion ID {emotion_id} {emotion_name}: {count} files")
173
+
174
+ # Print utility files separately
175
+ utility_count = len(df[df['emotion'] == 'utility'])
176
+ if utility_count > 0:
177
+ print(f"\nUtility files (rating/label/navon): {utility_count} files")
178
+
179
+ # Video Type Analysis
180
+ print("\n5. FILES PER VIDEO TYPE")
181
+ print("-"*30)
182
+ for video_type, count in sorted(analysis['video_type_counts'].items()):
183
+ print(f"{video_type}: {count} files")
184
+
185
+ # Epoch Analysis
186
+ print("\n6. FILES PER EPOCH")
187
+ print("-"*30)
188
+ for epoch, count in sorted(analysis['epoch_counts'].items(), key=lambda x: int(x[0])):
189
+ print(f"Epoch {epoch}: {count} files")
190
+
191
+ # CSV File Information
192
+ print("\n7. CSV FILE OUTPUTS")
193
+ print("-"*30)
194
+ print("1. Full analysis file: fif_file_analysis.csv")
195
+ print("2. Emotion-only file: emotion_files.csv")
196
+ print("\nColumns:")
197
+ for col in df.columns:
198
+ print(f"- {col}")
199
+
200
+ # Additional Statistics
201
+ print("\n8. ADDITIONAL STATISTICS")
202
+ print("-"*30)
203
+ if analysis['total_files'] > 0:
204
+ avg_files_per_dir = analysis['total_files'] / len(analysis['directory_counts'])
205
+ avg_files_per_subject = analysis['total_files'] / len(analysis['subject_counts'])
206
+ print(f"Average files per directory: {avg_files_per_dir:.2f}")
207
+ print(f"Average files per subject: {avg_files_per_subject:.2f}")
208
+
209
+ # Calculate percentages of emotion files
210
+ emotion_files = sum(analysis['emotion_id_counts'].values())
211
+ utility_files = utility_count
212
+ print(f"\nEmotion files: {emotion_files} ({(emotion_files/analysis['total_files']*100):.1f}%)")
213
+ print(f"Utility files: {utility_files} ({(utility_files/analysis['total_files']*100):.1f}%)")
214
+
215
+ if __name__ == "__main__":
216
+ # Run analysis
217
+ df, analysis = analyze_fif_paths()
split_fifs/919513/919513-mapped_epoch_10_asmrraw_interval_11.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_10_asmrraw_interval_5.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_10_asmrraw_interval_9.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_12_labelraw_interval_14.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_12_labelraw_interval_17.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_12_labelraw_interval_27.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_12_labelraw_interval_29.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_13_saddogsraw_interval_17.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_13_saddogsraw_interval_27.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_13_saddogsraw_interval_6.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_14_labelraw_interval_1.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_15_labelraw_interval_0.raw.fif ADDED
Binary file (37 kB). View file
 
split_fifs/919513/919513-mapped_epoch_15_labelraw_interval_10.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_15_labelraw_interval_18.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_15_labelraw_interval_31.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_15_labelraw_interval_4.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_15_labelraw_interval_7.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_16_conjuringraw_interval_0.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_16_conjuringraw_interval_1.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_16_conjuringraw_interval_11.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_16_conjuringraw_interval_24.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_16_conjuringraw_interval_26.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_16_conjuringraw_interval_28.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_18_labelraw_interval_15.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_18_labelraw_interval_18.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_18_labelraw_interval_22.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_18_labelraw_interval_4.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_19_trainspottingraw_interval_18.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_19_trainspottingraw_interval_20.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_1_ratatChaseSceneraw_interval_10.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_1_ratatChaseSceneraw_interval_20.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_1_ratatChaseSceneraw_interval_21.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_1_ratatChaseSceneraw_interval_26.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_1_ratatChaseSceneraw_interval_27.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_1_ratatChaseSceneraw_interval_3.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_21_labelraw_interval_19.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_21_labelraw_interval_29.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_22_angrydogsraw_interval_1.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_22_angrydogsraw_interval_10.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_22_angrydogsraw_interval_2.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_22_angrydogsraw_interval_4.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_23_labelraw_interval_1.raw.fif ADDED
Binary file (36.8 kB). View file
 
split_fifs/919513/919513-mapped_epoch_23_labelraw_interval_2.raw.fif ADDED
Binary file (25.1 kB). View file
 
split_fifs/919513/919513-mapped_epoch_3_labelraw_interval_12.raw.fif ADDED
Binary file (36.8 kB). View file