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

[WIP] [standalone] Dimension reduction standalone module, and a few dimension reduction changes #998

Draft
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

atalon-lip6
Copy link
Contributor

@atalon-lip6 atalon-lip6 commented Dec 7, 2023

This PR introduces the dimension reduction standalone command-line module. It also adds some documentations for options of dimension reduction in the xml file. It finally reflects a change in a default options for tsne embedding in the base code.

Copy link
Collaborator

@julien-tierny julien-tierny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks a lot
here's a first batch of remarks.

}
}

return 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note for later: there's still a segfault upon the program termination.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed this by running Py_Finalize in the destruction of dimensionReduction.
In the previous version we would not run it if Python was already initialized, I mimick this behaviour with an additional boolean member of dimensionReduction.

Note: not sure if it is normal, but valgrind says some things initialised by Python are not freed. Yet, Py_Finalized is called.

standalone/DimensionReduction/main.cpp Outdated Show resolved Hide resolved
@julien-tierny julien-tierny changed the title [standalone] Dimension reduction standalone module, and a few dimension reduction changes WIP [standalone] Dimension reduction standalone module, and a few dimension reduction changes Jun 27, 2024
@julien-tierny julien-tierny changed the title WIP [standalone] Dimension reduction standalone module, and a few dimension reduction changes [WIP] [standalone] Dimension reduction standalone module, and a few dimension reduction changes Jun 27, 2024
@julien-tierny julien-tierny added the WIP work in progress label Jun 27, 2024
@julien-tierny julien-tierny marked this pull request as draft June 27, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants