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

The implementation of Eq. (10) #3

Open
panlinchao opened this issue Nov 13, 2024 · 0 comments
Open

The implementation of Eq. (10) #3

panlinchao opened this issue Nov 13, 2024 · 0 comments

Comments

@panlinchao
Copy link

Hello,
Thanks for this promising work! I am reproducing the results from your paper using the provided configuration. I noticed a difference between how Equation (10) is implemented in the code and how it is defined. Considering the similarity condition between different centroids, Equation (10) uses larger ACD clusters while the code uses smaller ACD clusters. Could you clarify if there is a specific reason for this difference or guide me to the correct implementation?
Thanks for your help.

if (abs((current_centriod_distance-max_centriod_distance[0]).item()) < 0.1 * current_centriod_distance.item() and (sample_num_list[class_num] < sample_num_list[max_centriod_indice[0].item()])):
select_sample_index_list.extend(select_sample_index_list_1[class_num])
select_sample_prob_list.extend(select_sample_prob_list_1[class_num])
else:
select_sample_index_list.extend(select_sample_index_list_2[class_num])
select_sample_prob_list.extend(select_sample_prob_list_2[class_num])

select_sample_dimensionnal_status.append(0)
select_sample_index_list_1.append(cluster_index_1_acd)
select_sample_prob_list_1.append(prob_acd[:,gmm_acd.means_.argmin()][cluster_select_index_1_acd])
select_sample_index_list_2.append(cluster_index_2_acd)
select_sample_prob_list_2.append(prob_acd[:,gmm_acd.means_.argmax()][cluster_select_index_2_acd])

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

1 participant