# skchem.base
Base classes for scikit-chem objects.
skchem.base.
AtomTransformer
(max_atoms=100, **kwargs)[source]¶Bases: skchem.base.BaseTransformer
Transformer that will produce a Panel.
Concrete classes inheriting from this should implement _transform_atom, _transform_mol and minor_axis.
See also
Transformer
axes_names
¶tuple – The names of the axes.
minor_axis
¶pd.Index – Minor axis of transformed values.
skchem.base.
BaseTransformer
(n_jobs=1, verbose=True)[source]¶Bases: object
Transformer Base Class.
Specific Base Transformer classes inherit from this class and implement transform and axis_names.
axes_names
¶tuple – The names of the axes.
n_jobs
¶to_json
(target=None)[source]¶Serialize the object as JSON.
Parameters: |
|
---|
skchem.base.
BatchTransformer
(n_jobs=1, verbose=True)[source]¶Bases: skchem.base.BaseTransformer
Mixin for which transforms on multiple molecules save overhead.
Implement _transform_series with the transformation rather than _transform_mol. Must occur before Transformer or AtomTransformer in method resolution order.
See also
Transformer, AtomTransformer.
skchem.base.
CLIWrapper
(error_on_fail=False, warn_on_fail=True, **kwargs)[source]¶Bases: skchem.base.External
, skchem.base.BaseTransformer
CLI wrapper.
Concrete classes inheriting from this must implement _cli_args, monitor_progress, _parse_outfile, _parse_errors.
n_jobs
¶skchem.base.
External
(**kwargs)[source]¶Bases: object
Mixin for wrappers of external CLI tools.
Concrete classes must implement validate_install.
install_hint
¶str – an explanation of how to install external tool.
install_hint
= ''validated
¶bool – whether the external tool is installed and active.
skchem.base.
Featurizer
[source]¶Bases: object
Base class for m -> data transforms, such as Fingerprinting etc.
Concrete subclasses should implement name, returning a string uniquely identifying the featurizer.
skchem.base.
Transformer
(n_jobs=1, verbose=True)[source]¶Bases: skchem.base.BaseTransformer
Molecular based Transformer Base class.
Concrete Transformers inherit from this class and must implement _transform_mol and _columns.
See also
AtomTransformer.
axes_names
¶tuple – The names of the axes.
columns
¶pd.Index – The column index to use.
skchem.metrics.
bedroc_score
(y_true, y_pred, decreasing=True, alpha=20.0)[source]¶BEDROC metric implemented according to Truchon and Bayley.
The Boltzmann Enhanced Descrimination of the Receiver Operator Characteristic (BEDROC) score is a modification of the Receiver Operator Characteristic (ROC) score that allows for a factor of early recognition.
References
The original paper by Truchon et al. is located at 10.1021/ci600426e.
Parameters: |
|
---|---|
Returns: | Value in interval [0, 1] indicating degree to which the predictive technique employed detects (early) the positive class. |
Return type: | float |
A cheminformatics library to integrate with the Scientific Python Stack