robocrys.featurize package
Submodules
robocrys.featurize.adapter module
This module implements a class to resolve the symbolic references in condensed structure data.
- class robocrys.featurize.adapter.FeaturizerAdapter(condensed_structure, distorted_tol=0.6)[source]
Bases:
BaseAdapter
Class to facilitate featurizing condensed structure data.
- Parameters:
condensed_structure (
dict
[str
,Any
]) – The condensed structure data, formatted as produced byrobocrys.condense.StructureCondenser.condense_structure()
.
- property average_anion_coordination_number
The average coordination number across anion sites.
- property average_cation_coordination_number
The average coordination number across cation sites.
- property average_coordination_number
The average coordination number across all sites.
- property average_corner_sharing_octahedral_tilt_angle: float
The average corner-sharing octahedral tilt angle.
- contains_connected_geometry(connectivity, geometry)[source]
Whether the structure contains the specified connected geometry.
- property contains_corner_sharing_polyhedra: bool
Whether the structure contains corner-sharing polyhedra.
- property contains_edge_sharing_polyhedra: bool
Whether the structure contains edge-sharing polyhedra.
- property contains_face_sharing_polyhedra: bool
Whether the structure contains face-sharing polyhedra.
- contains_geometry_type(geometry, distorted=None)[source]
Whether the structure contains a specific site geometry.
- frac_sites_n_coordinate(num_neighbors)[source]
The fraction of sites with a specific coordination number.
robocrys.featurize.featurizer module
This module contains a class to obtain robocrystallographer ML features.
- class robocrys.featurize.featurizer.RobocrysFeaturizer(condenser_kwargs=None, distorted_tol=0.6)[source]
Bases:
BaseFeaturizer
Class to generate structure features from robocrystallographer output.
- Parameters:
- citations()[source]
Citation(s) and reference(s) for this feature.
- Returns:
- (list) each element should be a string citation,
ideally in BibTeX format.
- implementors()[source]
List of implementors of the feature.
- Returns:
- (list) each element should either be a string with author name (e.g.,
”Anubhav Jain”) or a dictionary with required key “name” and other keys like “email” or “institution” (e.g., {“name”: “Anubhav Jain”, “email”: “ajain@lbl.gov”, “institution”: “LBNL”}).