-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetupFolder.py
More file actions
45 lines (40 loc) · 1.15 KB
/
Copy pathsetupFolder.py
File metadata and controls
45 lines (40 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# setup.py
import os
# Define project structure
directories = [
'data',
'models',
'notebooks',
'src/preprocessing',
'src/features',
'src/models',
'src/visualization'
]
# Create directories
for directory in directories:
os.makedirs(directory, exist_ok=True)
print(f"Created directory: {directory}")
# Create empty __init__.py files for proper Python package structure
for directory in directories:
if directory.startswith('src'):
init_file = os.path.join(directory, '__init__.py')
with open(init_file, 'w') as f:
pass
print(f"Created: {init_file}")
# Create requirements.txt
requirements = [
'numpy',
'pandas',
'matplotlib',
'scipy',
'scikit-learn',
'wfdb', # For reading MIT-BIH database
'tensorflow', # For deep learning models
'PyWavelets', # For wavelet transforms
'requests', # For downloading data
'joblib', # For model persistence
'ipykernel' # For Jupyter notebook support
]
with open('requirements.txt', 'w') as f:
f.write('\n'.join(requirements))
print("Created: requirements.txt")