Finalize Step 2 robust model checkpoint discovery paths
Browse files
CMTLNet_complete_codebase_bundle.zip
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e6bf2f7a45495f5cd3ce724fe02213cf058a4b275945449cddb94dfc29a2d251
|
| 3 |
+
size 25745470
|
code/Train_CMTLNet_Step2.py
CHANGED
|
@@ -651,6 +651,12 @@ if __name__ == '__main__':
|
|
| 651 |
cfe_files = glob.glob(f'best_models/fixedone/Fold_{fold}/CFE_F1_*.pkl')
|
| 652 |
if not cfe_files:
|
| 653 |
cfe_files = glob.glob(f'../results/CFE/Fold_{fold}/CFE_F1_*.pkl')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 654 |
if cfe_files:
|
| 655 |
latest_cfe = max(cfe_files, key=os.path.getmtime)
|
| 656 |
print(f"✅ Loading CFE model for Fold {fold}: {latest_cfe}")
|
|
|
|
| 651 |
cfe_files = glob.glob(f'best_models/fixedone/Fold_{fold}/CFE_F1_*.pkl')
|
| 652 |
if not cfe_files:
|
| 653 |
cfe_files = glob.glob(f'../results/CFE/Fold_{fold}/CFE_F1_*.pkl')
|
| 654 |
+
if not cfe_files:
|
| 655 |
+
cfe_files = glob.glob(f'../best_models/fixedone/Fold_{fold}/CFE_F1_*.pkl')
|
| 656 |
+
if not cfe_files:
|
| 657 |
+
cfe_files = glob.glob(f'../../best_models/fixedone/Fold_{fold}/CFE_F1_*.pkl')
|
| 658 |
+
if not cfe_files:
|
| 659 |
+
cfe_files = glob.glob(f'../../results/CFE/Fold_{fold}/CFE_F1_*.pkl')
|
| 660 |
if cfe_files:
|
| 661 |
latest_cfe = max(cfe_files, key=os.path.getmtime)
|
| 662 |
print(f"✅ Loading CFE model for Fold {fold}: {latest_cfe}")
|