Code changes
Browse files- brain2vec_PCA.py +4 -4
brain2vec_PCA.py
CHANGED
|
@@ -237,10 +237,10 @@ def main():
|
|
| 237 |
print(f"Saved reconstructions to {recons_path}")
|
| 238 |
|
| 239 |
# Optionally save the actual PCA model with joblib
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
|
| 245 |
|
| 246 |
if __name__ == "__main__":
|
|
|
|
| 237 |
print(f"Saved reconstructions to {recons_path}")
|
| 238 |
|
| 239 |
# Optionally save the actual PCA model with joblib
|
| 240 |
+
from joblib import dump
|
| 241 |
+
ipca_model_path = os.path.join(args.output_dir, "pca_model.joblib")
|
| 242 |
+
dump(model.ipca, ipca_model_path)
|
| 243 |
+
print(f"Saved PCA model to {ipca_model_path}")
|
| 244 |
|
| 245 |
|
| 246 |
if __name__ == "__main__":
|