report

Go to:

Records and summary

class commonnn.report.Record(*args)

Cluster result container

Record instances can be created during fit() and are collected in Summary.

abstract classmethod from_bundle(bundle, cluster_params=None, **kwargs)

Create record from (clustered) bundle data

class commonnn.report.CommonNNRecord(*args)

Cluster result container

Record instances can be created during fit() and are collected in Summary.

class commonnn.report.Summary(iterable=None, *, record_type=<class 'commonnn.report.Record'>)

List like container for cluster results

Stores instances of Record.

insert(index, item)

S.insert(index, value) – insert value before index

to_DataFrame(map_pd_dtypes=True)

Convert list of records to (typed) pandas.DataFrame

Returns:

pandas.DataFrame

commonnn.report.make_typed_DataFrame(columns, dtypes, content=None)

Construct pandas.DataFrame with typed columns

commonnn.report.timed(function)

Decorator to measure execution time