ShuGuoJ / 3DAES

16 stars 4 forks source link

reproduction error #6

Open Meiling510 opened 1 year ago

Meiling510 commented 1 year ago

I use the logistic regression classifier(LogisticRegression(multi_class="multinomial", solver="newton-cg", max_iter=1000)) for classification, which cannot achieve the effect of the paper. Would you like to share the source code of the third part for reproduction?

ShuGuoJ commented 1 year ago

In my code, the logistic regression implemented in sklearn (a third-party library) is used as the classifier. Specifically, classifier = LogisticRegression(random_state=666, max_iter=4000). The reason caused the bad result compared with ours may be: 1. a good feature model is not selected; 2. the distribution of training samples is not very well, which would degrade the model, especially when there are just a few available samples for training. Hope my response is useful for you.

Meiling510 commented 1 year ago

Thank you for your reply! I'll try again.

Meiling510 commented 1 year ago

I tried it again, but the result is still not good.After I train AE,I chose the 5th epoch feature model which has the smallest test error,and then trained Siamese network for 10 epoch with 10 samples per class also as in your paper,and finally fit a Logistic Regression classifier with the same 10 samples per class in training siamese.I used PaviaU to train the model,but get an OA of 0.5. (all elements in confusion matrix: [0. 0.80221895 0.20020222 0.54737733 0. 0.13327427 0.27259368 0.30137224 0.92977528]).And i used trainTestSplit.py to randomly pick 10 samples per class as training data as same as yours.So i think there is no uneven distribution of training samples.Do you know where my problem is?

ShuGuoJ commented 1 year ago

I think it is very abnormal. When I only use autoencoder to extract features, the classification accuracy has outperformed 50%. I suggest you can check whether label indexes in training correspond to ones in inference.

Meiling510 commented 1 year ago

I can't find the YRE dataset, could you be generous enough to share it?

ShuGuoJ commented 1 year ago

I am sorry to reject it for the copyright of YRE is private and does not belong to us.

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年9月21日(星期三) 晚上7:55 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [ShuGuoJ/3DAES] reproduction error (Issue #6)

I can't find the YRE dataset, could you be generous enough to share it?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>