-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add featurizer #102
Add featurizer #102
Conversation
…ed coxx featurizer test
…o add-featurizer sync remote
Need to use this 3 commands successively to get correct value of the coverage (Low coverage we are seeing is coz of multiprocessing module) |
I will check again. Thanks. However, we could still to increase the coverage further. By refactoring, you might be able to get even more. There are some code pieces that are called multiple times. |
|
||
def _get_lobsterpy_cba_dict(self) -> dict: | ||
""" | ||
This function uses lobsterpy.cohp.analyze.Analysis class to generate a python dictionary object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Changed it now to a static method.
lobsterpy/featurize/core.py
Outdated
COXX nth moment in eV | ||
""" | ||
if e_range: | ||
coxx = coxx[(energies >= self.e_range[0]) & (energies <= self.e_range[-1])] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It probably works but I would still make sure this comparison is okay.
lobsterpy/featurize/core.py
Outdated
if ids: | ||
df = pd.DataFrame(index=[ids]) | ||
else: | ||
ids = os.path.basename(os.path.dirname(self.path_to_coxxcar)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In many parts of the code, we now use "Path". Could you update this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made it consistent now
Could Ou also add documentation of the new installation process? |
I will do it in another PR and link it to this open issue #117 |
Hi @JaGeo , I think now the issues with numerical stability should be fixed and also more tests have been added to improve the coverage. If any more changes necessary would be happy to address it 😃 |
Also, I will try to add orbital-wise COXX features (center, width, skew, kurtosis and fingerprints) as well . But will be added in another PR once this is merged. |
@@ -78,67 +72,6 @@ disable=print-statement, | |||
useless-suppression, | |||
deprecated-pragma, | |||
use-symbolic-message-instead, | |||
apply-builtin, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@naik-aakash any reason why we have to remove all of them or is this an issue with not having the latest main branch merged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I removed them as they seem deprecated and made the lint workflow print a whole lot of warnings,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked throught the main implementations. For the featurization of the COHPs and further features, we might want to run some more tests later on.
Enhancement > Featurizer for ML #96
Added featurizers for ML
Todo