NeuroConscious Transformer

pip install torch numpy scipy

from 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.py

exp_mnist_few_shot.py

run_cifar10_full.py

run_anomaly_detection.py

run_cat_recognition.py

# 启动 Dashboard pip install streamlit plotly pandas streamlit run visualization/nct_dashboard.py