Skip to main content

A set of functions to transform datasets

Project description

The GenSer package (i.e. Generalised Serialisation) contains the set of functions to perform the dimension transformation of the numerical dataset. To use the package you should have a dataset of non-negative integer values. Having n features in your dataset, you may transform it to m features and, after your work with data, return back to n features. The following functions available:

dim_step_down(data, powers): data is a list of lists; powers is list of powers of the features, i.e. how many different values can the feature take.

dim_step_up(data, powers): the same description as for dim_step_down.

transform_to(data, d): Transforms the dimension of the given dataset to the d value

Arguments:
data (list of lists): the input dataset without labels
d (int): the target dimension

Outputs:
A dataset of dimension d, 
A list of transformation hints: a tuple (powers, tdict) for every step.

transform_out_down(data, rlist): Transforms back the dimension of the given dataset when the dimension had been increased by transform_to

Arguments:
data (list of lists): the input dataset without labels
rlist (list): the list resulted from transform_to

Outputs:
A restored dataset, 
A powers of the restored dataset (may differ from the 
    initial powers of transform_to argument data).

transform_out_up(data, rlist): Transforms back the dimension of the given dataset when the dimension had been decreased by transform_to

Arguments:
data (list of lists): the input dataset without labels
rlist (list): the list resulted from transform_to

Outputs:
A restored dataset, 
A powers of the restored dataset (may differ from the 
    initial powers of transform_to argument data). 

Additional information available directly from the author by request on email shoukhov@mail.ru

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genser-1.0.1.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

genser-1.0.1-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file genser-1.0.1.tar.gz.

File metadata

  • Download URL: genser-1.0.1.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for genser-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dc050cc75ac71b6f470f3849e8e82c467ad1c504a54d3f0a5296af4da3eb3775
MD5 da48abe6e5ae97a9bf0654be2257e62f
BLAKE2b-256 746039f8839020c2ab253eefc83101febba5b9fee3d3b8b009942040f561a7e2

See more details on using hashes here.

File details

Details for the file genser-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: genser-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for genser-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 199e3104f6ef5398063e6d055eb24ac110e8f958ea8121dde7bd2e9a60351f51
MD5 0a7d7f5d11ba91f2b3c0ef624a3d7339
BLAKE2b-256 a4993ac19dc5d8ef3bfa6f41a4f1b329c824deaf76aae52d67c4fbffeb62c559

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page