handwriting_sample.reader package

Submodules

handwriting_sample.reader.exceptions module

handwriting_sample.reader.interface module

class handwriting_sample.reader.interface.HandwritingSampleReader[source]

Bases: LoggableObject

Class implementing handwriting data reader

classmethod read_from_json(path, columns, verbose=False)[source]

Reads handwriting data and meta data from a JSON file.

Parameters
  • path (str) – path to a JSON file

  • columns (list) – handwriting variables to be present in the data

  • verbose (bool, optional) – verbosity of the logging, defaults to False

Returns

data and meta data

Return type

tuple

classmethod read_from_list(data, columns, verbose=False)[source]

Reads handwriting data and meta data from a list.

Parameters
  • data (list) – data representing handwriting sample

  • columns (list) – handwriting variables to be present in the data

  • verbose (bool, optional) – verbosity of the logging, defaults to False

Returns

data and meta data

Return type

tuple

classmethod read_from_numpy_array(data, columns, verbose=False)[source]

Reads handwriting data and meta data from a numpy array.

Parameters
  • data (np.ndarray) – data representing handwriting sample

  • columns (list) – handwriting variables to be present in the data

  • verbose (bool, optional) – verbosity of the logging, defaults to False

Returns

data and meta data

Return type

tuple

classmethod read_from_pandas_dataframe(data, columns, verbose=False)[source]

Reads handwriting data and meta data from a pandas DataFrame.

Parameters
  • data (pd.DataFrame) – data representing handwriting sample

  • columns (list) – handwriting variables to be present in the data

  • verbose (bool, optional) – verbosity of the logging, defaults to False

Returns

data and meta data

Return type

tuple

classmethod read_from_svc(path, columns, verbose=False)[source]

Reads handwriting data and meta data from an SVC file.

Parameters
  • path (str) – path to an SVC file

  • columns (list) – handwriting variables to be present in the data

  • verbose (bool, optional) – verbosity of the logging, defaults to False

Returns

data and meta data

Return type

tuple

handwriting_sample.reader.readers module

class handwriting_sample.reader.readers.JSONFileReader[source]

Bases: LoggableObject

Class implementing JSON file reader

classmethod read(path, verbose=False)[source]

Reads the handwriting data and meta data

class handwriting_sample.reader.readers.ListReader[source]

Bases: LoggableObject

Class implementing list object reader

classmethod read(data, column_names, verbose=False)[source]

Reads the handwriting data and meta data

class handwriting_sample.reader.readers.NumpyArrayReader[source]

Bases: LoggableObject

Class implementing numpy array reader

classmethod read(data, column_names, verbose=False)[source]

Reads the handwriting data and meta data

class handwriting_sample.reader.readers.PandasDataFrameReader[source]

Bases: LoggableObject

Class implementing pandas dataframe reader

classmethod read(data, verbose=False)[source]

Reads the handwriting data and meta data

class handwriting_sample.reader.readers.SVCFileReader[source]

Bases: LoggableObject

Class implementing SVC file reader

classmethod read(path, column_names, verbose=False)[source]

Reads the handwriting data and meta data

Module contents