-
Notifications
You must be signed in to change notification settings - Fork 2
[ENH] Generalized PSeAAC #60
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
Conversation
…on tests and bug fixing
I think I will add a parameter to |
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.
Let's please split this into two classes: "vanilla" and generalized.
See #60 (review)
The generalized version has all the defaults of the "vanilla" version, hence the vanilla class call and generalized class call produce the same results, and the old tests still pass (without any change to the test itself). If there was some change in the values being used I would split it. If you still want me to split it (I dont get why if default class calls match), what should the defaults for the generalized class be? |
I think a user is significantly more confused how to use the "generalized" class than the current class. This is definitely true at the current state of docstrings, which does not explain very well what the new variables would or could be, nor does it give any examples. Also, it is easier to iterate on this class in review if it is a separate one, and we are less likely to reintroduce bugs in the existing class that is used elsewhere.
The same, I would say. |
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. Can you kindly put the generalized and the specific algorithm both in the pseaac
folder?
Done. |
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 am not sure what you did, but now you seem to have two identical classes, one in pseaac
, and one in pseaac.aptanet
. The old class has been deleted.
Can you kindly do the following:
- restore the original class exactly as it was before this PR.
- add the new class to a module called
_features_general
, inpseaac
. - put tests in the same folder,
aptanet.tests
.
I do not know why this happened either, will look into it
I would like to rename the old module to
You mean |
Yes, that is what I meant
Can you do the renaming in another PR? Just to avoid any accidents and keep the files tracked. |
@fkiraly are you ok with this? I think we should have the generalized form and aptanet form be in separate directories, so that their feature sets can be different. |
Not sure if we agree on the final state or what to do in this PR. Regarding the end state:
In this PR specifically, I would recommend to avoid renaming any existing files to avoid merge conflicts later on. Renaming |
I disagree with that as stated above: "the properties which were used for aptanet will also then be used for generalized. And if someone wants to expand on the available property groups for generalized pseaac, aptanet pseaac will end up using the newly added ones too." nstead id rather have the aptanet version inside a sub-directory in |
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.
Can you please do this as follows:
- do not change the location or content of the current files
- add the generalized algorithm in a sepraate file inside
pseaac
?
Thanks
Like here |
closes #59.
This PR moves the current PSeAAC algorithm into the aptanet directory and renames the old class to
AptaNetPSeAAC
(since it is aptanet specific).This PR also makes the PSeAAC algorithm (in root) more flexible as:
prop_indices
).group_props
, which groups based on the order of elements inprop_indices
).group_props
(viacustom_groups
).