skchem.pipeline package

Submodules

skchem.pipeline.pipeline module

# skchem.pipeline.pipeline

Module implementing pipelines.

class skchem.pipeline.pipeline.Pipeline(objects)[source]

Bases: object

Pipeline object. Applies filters and transformers in sequence.

copy()[source]

Return a copy of this object.

classmethod from_params(params)[source]

Create a instance from a params dictionary.

get_params()[source]
to_dict()[source]

Return a dictionary representation of the object.

to_json(target=None)[source]

Serialize the object as JSON.

Parameters:
  • target (str or file-like) – A file or filepath to serialize the object to. If None, return the JSON as a string.
  • Returns – None or str
to_yaml(target=None)[source]

Serialize the object as YAML.

Parameters:
  • target (str or file-like) – A file or filepath to serialize the object to. If None, return the YAML as a string.
  • Returns – None or str
transform_filter(mols, y=None)[source]
skchem.pipeline.pipeline.is_filter(obj)[source]

Whether an object is a Filter (by duck typing).

skchem.pipeline.pipeline.is_transform_filter(obj)[source]

Whether an object is a TransformFilter (by duck typing).

skchem.pipeline.pipeline.is_transformer(obj)[source]

Whether an object is a Transformer (by duck typing).

Module contents

# skchem.pipeline

Package implementing pipelines.

class skchem.pipeline.Pipeline(objects)[source]

Bases: object

Pipeline object. Applies filters and transformers in sequence.

copy()[source]

Return a copy of this object.

classmethod from_params(params)[source]

Create a instance from a params dictionary.

get_params()[source]
to_dict()[source]

Return a dictionary representation of the object.

to_json(target=None)[source]

Serialize the object as JSON.

Parameters:
  • target (str or file-like) – A file or filepath to serialize the object to. If None, return the JSON as a string.
  • Returns – None or str
to_yaml(target=None)[source]

Serialize the object as YAML.

Parameters:
  • target (str or file-like) – A file or filepath to serialize the object to. If None, return the YAML as a string.
  • Returns – None or str
transform_filter(mols, y=None)[source]