malt.agents.assayer.DatasetAssayer

class malt.agents.assayer.DatasetAssayer(dataset: malt.data.dataset.Dataset)[source]

Bases: malt.agents.assayer.Assayer

Simulated assayer based on dataset.

Parameters

dataset (Dataset)

assay(dataset)[source]

Assay a dataset (persumably without y).

Examples

>>> import malt
>>> dataset = malt.data.collections.linear_alkanes(5)
>>> dataset_assayer = malt.agents.assayer.DatasetAssayer(dataset)
>>> assayed_dataset = dataset_assayer.assay(dataset)
>>> assert assayed_dataset == dataset
__init__(dataset: malt.data.dataset.Dataset)[source]

Methods

__init__(dataset)

assay(dataset[, by])

Assay based on a given dataset.

assay(dataset, by=['y'])[source]

Assay based on a given dataset.

Parameters

dataset (Dataset) – Dataset to assay.

Returns

dataset – Assayed dataset, with all y annotated.

Return type

Dataset