Skip to content

Commit db8e41c

Browse files
committed
Reorganize repository structure and remove redundant files
- Moved generate_figures.py and consolidate_model_results.py to code/ folder - Removed redundant visualization scripts that duplicate toolbox functionality: - all_losses.py, stripplot.py, oz_losses.py (duplicate llm_stylometry.visualization) - loss_heatmaps.py (duplicate of heatmaps.py) - confusion_matrix.py (not used in paper) - t_test_figs.py (duplicate of t_tests.py) - Updated run_llm_stylometry.sh to use new paths - Updated README to reflect new structure with code/ containing CLI and training scripts - Kept only essential training scripts in code/ folder
1 parent 69ed635 commit db8e41c

File tree

10 files changed

+8
-625
lines changed

10 files changed

+8
-625
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ llm-stylometry/
2121
│ ├── utils/ # Helper utilities
2222
│ ├── visualization/ # Plotting and visualization
2323
│ └── cli_utils.py # CLI helper functions
24+
├── code/ # Training and CLI scripts
25+
│ ├── generate_figures.py # Main CLI entry point
26+
│ ├── consolidate_model_results.py # Result consolidation
27+
│ ├── main.py # Model training orchestration
28+
│ ├── clean.py # Data preprocessing
29+
│ └── ... # Supporting training modules
2430
├── data/ # Datasets and results
2531
│ ├── raw/ # Original texts from Project Gutenberg
2632
│ ├── cleaned/ # Preprocessed texts by author
@@ -35,8 +41,6 @@ llm-stylometry/
3541
│ ├── data/ # Test data and fixtures
3642
│ ├── test_*.py # Test modules
3743
│ └── check_outputs.py # Output validation script
38-
├── consolidate_model_results.py # Consolidate training results
39-
├── generate_figures.py # Main CLI entry point
4044
├── run_llm_stylometry.sh # Shell wrapper for easy setup
4145
├── LICENSE # MIT License
4246
├── README.md # This file

code/all_losses.py

Lines changed: 0 additions & 121 deletions
This file was deleted.

code/confusion_matrix.py

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def train_models():
5252

5353
# Consolidate results
5454
safe_print("\nConsolidating model results...")
55-
result = subprocess.run([sys.executable, 'consolidate_model_results.py'], capture_output=True)
55+
result = subprocess.run([sys.executable, 'code/consolidate_model_results.py'], capture_output=True)
5656
if result.returncode != 0:
5757
safe_print(f"Error consolidating results: {result.stderr.decode()}")
5858
return False

code/loss_heatmaps.py

Lines changed: 0 additions & 133 deletions
This file was deleted.

0 commit comments

Comments
 (0)