not using from_preset

18 views
Skip to first unread message

debasis.se...@gmail.com

unread,
Apr 17, 2019, 6:08:11 PM4/17/19
to matminer
Hi,
I am trying to use ElementProperty with limited number of pymatgen (i.e. matminer ) features

I used following, as I want atomic_mass with mean statistics

from matminer.featurizers.composition import ElementProperty
ep_feat =  ElementProperty("pymatgen","atomic_mass","mean")

I then tried checking the feature labels, with the following. I think the feature names do not sound right. They should be a subset of the output if I use ElementProperty.from_preset("matminer").  Could you tell me how to do it?  Thanks.  Debasis

 ep_feat.feature_labels()

['PymatgenData m a', 'PymatgenData e a', 'PymatgenData a a', 'PymatgenData n a', 'PymatgenData m t', 'PymatgenData e t', 'PymatgenData a t', 'PymatgenData n t', 'PymatgenData m o', 'PymatgenData e o', 'PymatgenData a o', 'PymatgenData n o', 'PymatgenData m m', 'PymatgenData e m', 'PymatgenData a m', 'PymatgenData n m', 'PymatgenData m i', 'PymatgenData e i', 'PymatgenData a i', 'PymatgenData n i', 'PymatgenData m c', 'PymatgenData e c', 'PymatgenData a c', 'PymatgenData n c', 'PymatgenData m _', 'PymatgenData e _', 'PymatgenData a _', 'PymatgenData n _', 'PymatgenData m m', 'PymatgenData e m', 'PymatgenData a m', 'PymatgenData n m', 'PymatgenData m a', 'PymatgenData e a', 'PymatgenData a a', 'PymatgenData n a', 'PymatgenData m s', 'PymatgenData e s', 'PymatgenData a s', 'PymatgenData n s', 'PymatgenData m s', 'PymatgenData e s', 'PymatgenData a s', 'PymatgenData n s']

Logan Ward

unread,
Apr 17, 2019, 6:14:29 PM4/17/19
to debasis.se...@gmail.com, matminer

Try putting atomic_mass and mean inside lists.

 

E.g., ElementProperty("pymatgen",["atomic_mass"],["mean"])

 

Logan

--
You received this message because you are subscribed to the Google Groups "matminer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to matminer+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

debasis.se...@gmail.com

unread,
Apr 18, 2019, 9:25:12 AM4/18/19
to matminer
Thank you! it works !
Reply all
Reply to author
Forward
0 new messages