PCE Setup Guide¶
This guide will help you set up and run the Pan-Omics Consciousness Engine (PCE) on your system.
Prerequisites¶
- Python: 3.8 or higher
- Operating System: Windows, macOS, or Linux
- Memory: At least 4GB RAM (8GB recommended)
- Storage: 2GB free space
Installation Steps¶
1. Clone the Repository¶
2. Set Up Python Environment¶
Using conda (recommended):¶
Using venv:¶
python -m venv pce_env
# On Windows:
pce_env\Scripts\activate
# On macOS/Linux:
source pce_env/bin/activate
3. Install Dependencies¶
4. Verify Installation¶
Expected output:
Quick Test¶
Run the complete system test to verify everything is working:
import pce
# Create test dataset
data = pce.create_toy_dataset('toy_genomics', 10, 5)
print(f'Dataset: {data.name} with {len(data.get_all_entities())} entities')
# Run consciousness analysis
metrics = pce.quick_consciousness_analysis(
data,
integration_cycles=3,
save_results=False
)
# Display results
print(f'Consciousness φ (Phi): {metrics.phi:.6f}')
print(f'Consciousness Level: {metrics.consciousness_level:.6f}')
print(f'Category: {metrics.consciousness_category.name}')
Expected output:
Dataset: Toy Genomics Dataset with 5 entities
Consciousness φ (Phi): 0.000639
Consciousness Level: 0.107696
Category: SUBCONSCIOUS
Optional Dependencies¶
For enhanced performance and features, install optional dependencies:
# Scientific computing (recommended)
pip install scipy scikit-learn
# Visualization (optional)
pip install matplotlib seaborn plotly
# Development tools (if contributing)
pip install pytest black flake8 mypy
System Configuration¶
PCE can be configured through environment variables:
# Set log level
export PCE_LOG_LEVEL=INFO
# Set number of parallel processes
export PCE_NUM_PROCESSES=4
# Enable GPU acceleration (if available)
export PCE_USE_GPU=true
Troubleshooting¶
Common Issues¶
-
Import Error: No module named 'pce'
-
Numerical Warnings
- These are normal for small datasets and don't affect functionality
-
Can be suppressed with:
export PCE_SUPPRESS_WARNINGS=true -
Slow Performance
- Install optional dependencies:
pip install scipy scikit-learn - Reduce integration cycles for testing:
integration_cycles=2 -
Use smaller datasets for initial testing
-
Memory Issues
- Reduce population size in E³DE: modify config files
- Use fewer simulation steps in HDTS
- Process smaller datasets initially
Getting Help¶
If you encounter issues:
- Check the FAQ
- Search existing issues
- Create a new issue with:
- Your operating system
- Python version
- Complete error message
- Steps to reproduce
Next Steps¶
Once PCE is installed and verified:
- Explore Examples: Check
examples/directory for usage patterns - Read Documentation: See detailed API documentation
- Run Benchmarks: Test with different dataset sizes
- Contribute: See contributing guidelines for development setup
Performance Expectations¶
For the toy genomics dataset (5 entities):
- Hypergraph Construction: ~0.003s
- Neural Network Encoding: ~0.15s
- Quantum Optimization: ~4.4s
- Evolutionary Simulation: ~0.3s
- Multi-scale Simulation: ~90s
- Consciousness Integration: ~0.15s
- Total Runtime: ~95s
Performance scales with dataset size and system complexity.
System Requirements by Use Case¶
Research/Development¶
- CPU: 4+ cores recommended
- RAM: 8GB minimum, 16GB recommended
- Storage: 5GB for development environment
Production/Large Datasets¶
- CPU: 8+ cores, preferably with AVX support
- RAM: 32GB+ recommended
- GPU: CUDA-compatible GPU for acceleration
- Storage: SSD recommended, 50GB+ for large datasets
Congratulations! You now have a working PCE installation. 🎉