pip install torch numpy scipyfrom nct_modules import NCTManager, NCTConfig
# 创建配置
config = NCTConfig(
n_heads=8, # 注意力头数
n_layers=6, # Transformer 层数
d_model=768, # 模型维度
)
# 创建管理器
manager = NCTManager(config)
# 运行一个处理周期
sensory_data = generate_sensory_input()
state = manager.process_cycle(sensory_data)
# 查看结果
print(f"Φ值:{state.phi}")
print(f"自由能:{state.free_energy}")# 运行快速示例 cd examples python quickstart.py# 运行测试 cd tests python test_basic.py# 运行完整实验 python experiments/run_all_experiments.pyexp_mnist_few_shot.pyrun_cifar10_full.pyrun_anomaly_detection.pyrun_cat_recognition.py# 启动 Dashboard pip install streamlit plotly pandas streamlit run visualization/nct_dashboard.py