More...
Functions
Attributes
Detailed Description
Source-based niche extraction from Common Pile
More reliable than clustering for creating distinct specialists
Functions Documentation
extract_source_based_niches(
sample_size sample_size =50000
)
Extract niches directly from source labels```
## Attributes Documentation
### variable PROJECT_ROOT
```python
PROJECT_ROOT = Path(__file__).resolve().parent.parent.parent;
variable exist_ok
variable TARGET_NICHES
variable viable_niches
variable source_counts
variable all_niche_samples
variable sample_size
variable output_data
dict output_data = {
'viable_niches': viable_niches,
'all_sources': source_counts,
'extraction_config': {
'sample_size': 50000,
'target_niches': TARGET_NICHES
}
};
variable output_path
output_path = str(PROJECT_ROOT / 'data' / 'analysis' / 'source_based_niches.json');
variable f
variable indent
Updated on 2026-07-25 at 22:56:57 +0000