Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems encountered in calculating CSG #24

Open
wangsuny opened this issue Aug 25, 2023 · 2 comments
Open

Problems encountered in calculating CSG #24

wangsuny opened this issue Aug 25, 2023 · 2 comments

Comments

@wangsuny
Copy link

wangsuny commented Aug 25, 2023

Hello,I am sorry to disturb you.
I am a student majoring in chemical engineering. I found your research very helpful to me. Thanks a lot. But when I try to figure out the CSG of CIFAR-10 loaded from keras. I cannot obtain the result mentioned in your article(1.0), My result is 3.53361029. I am looking forward to receiving your help very much, thanks a lot again. This is my code:
from spectral_metric.estimator import CumulativeGradientEstimator
from keras.datasets import cifar10
(train_images,train_labels),(test_images,test_labels) = cifar10.load_data()
train_images =train_images/255
train_images = train_images.reshape((train_images.shape[0],-1))
train_labels = train_labels.reshape([-1])
estimator = CumulativeGradientEstimator()
estimator.fit(train_images,train_labels)
csg = estimator.csg
print(csg)

@Dref360
Copy link
Owner

Dref360 commented Aug 25, 2023

Hello!

Thank you for submitting your issue, I'm happy to see that this is useful.

The CSG of 1.0 for Cifar10 is when using CNN autoencoder features and t-sne.

Table 4 in Annex has all the values for all the configuration.

To get the autoencoder features Link
To get the T-SNE features Link

I hope this helps and I'm happy to hop on a call if it's easier.

@wangsuny
Copy link
Author

Thank you very much for your help. I am working hard to achieve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants