2025-01-08python 代码实现了一个条件生成对抗网络(Conditional Generative Adversarial Network,CGAN),用于生成与给定的理化值相关的光谱数据importtensorflowastfimportnumpyasnpimportpandasaspdimportosimportmatplotlib.pyplotaspltfromsklearn.model_selectionimporttrain_test_splitfromtensorflow.keras.layersimportAdd,BatchNormalizationos.environ["KMP_DUPLICATE_LIB_O