|
|
@ -46,7 +46,7 @@ if __name__ == "__main__": |
|
|
|
feature_sample = pca.fit_transform(feature_sample) |
|
|
|
feature_sample = pca.fit_transform(feature_sample) |
|
|
|
kde = KernelDensity(bandwidth=0.7).fit(np.array([feature_sample[i] for i in index])) |
|
|
|
kde = KernelDensity(bandwidth=0.7).fit(np.array([feature_sample[i] for i in index])) |
|
|
|
|
|
|
|
|
|
|
|
# 计算图中预输入数据 |
|
|
|
# 预输入的数据 |
|
|
|
placeholders = { |
|
|
|
placeholders = { |
|
|
|
'features': tf.sparse_placeholder(tf.float32), |
|
|
|
'features': tf.sparse_placeholder(tf.float32), |
|
|
|
'features_dense': tf.placeholder(tf.float32, shape=[feas['adj'].shape[0], feas['num_features']], name='real_distribution'), |
|
|
|
'features_dense': tf.placeholder(tf.float32, shape=[feas['adj'].shape[0], feas['num_features']], name='real_distribution'), |
|
|
|