-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- ml4chem.data.visualization: Added kwargs to plot_atomic_features(). - ml4chem.features: * New base class to build AtomisticFeatures.¬ * .gaussian now supports conversion to pandas DataFrames.¬ - ml4chem.models: docstrings for base module. - Black cleaned.
- Loading branch information
Showing
6 changed files
with
52 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from abc import ABC, abstractmethod | ||
|
||
|
||
class AtomisticFeatures(ABC): | ||
@abstractmethod | ||
def name(cls): | ||
"""Return name of the class""" | ||
pass | ||
|
||
@abstractmethod | ||
def __init__(self, **kwargs): | ||
"""Arguments needed to instantiate Features""" | ||
pass | ||
|
||
@abstractmethod | ||
def calculate(self, **kwargs): | ||
"""Calculate features""" | ||
pass | ||
|
||
@abstractmethod | ||
def to_pandas(self): | ||
"""Convert features to pandas DataFrame""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters