Skip to main content

PolySet – Python library for generating distribution-aware polymer embeddings

Project description

PolySet – Python Library for Polymer Embeddings

A representation framework for polymers seen as ensembles rather than idealized single objects.

Why PolySet?

Real polymer materials are never single molecules. They are populations of chains — each with its own length, each contributing differently to the properties of the bulk material.

Current machine-learning approaches, however, typically reduce a polymer to a single symbolic structure, ignoring its internal statistical nature.

PolySet restores this missing dimension by representing a polymer as a finite ensemble of weighted chains consistent with its macroscopic descriptors.

PolySet changes the input — how the polymer is perceived by the model, not how the model learns.

What PolySet Does?

Given basic information such as the number-average molar mass (Mn), molar mass of the repeat unit (M0) and dispersity (Đ), PolySet constructs a representative ensemble of chains that respects these values and can be used as input for any downstream ML encoder.

PolySet optionally includes four sampling modes (basic, short, middle, long) that allow users to explore different plausible tail behaviors when only Mn and Đ are available. These are implementation-level options and do not modify the core philosophy of PolySet

Installation

pip install polysetlib

Documentation & Examples

More information and conceptual background are available here: https://khalidferji.academicwebsite.com/pages/polyset.

Citation

If PolySet contributes to your work, please cite:

ferji, khalid . (2025). PolySet: Statistical Ensemble Polymer Embeddings Dataset for Machine Learning [Data set]. Zenodo. https://doi.org/10.5281/zenodo.17861022.

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

polysetlib-1.0.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

polysetlib-1.0.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file polysetlib-1.0.0.tar.gz.

File metadata

  • Download URL: polysetlib-1.0.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for polysetlib-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4267184e2abb8a1020b54dfd65f378bdfccdc01359714c2131e9a6c9addb829f
MD5 3070cebc33e4c37abf2b2fd8f013a1d5
BLAKE2b-256 fd31730e2ee1c5d18e3d1ac2bb1785511654d23b2ab95c03ef39a04605edd85a

See more details on using hashes here.

File details

Details for the file polysetlib-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: polysetlib-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for polysetlib-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6adf212a6ac3ba10c87f4e11ebe19bb4bb92c242b00edd91e9325456a1500996
MD5 5b1117498270fc44f0a7109efa286ef3
BLAKE2b-256 a2e2e8d05a31c208e346ddffbd87ea1a562b9ca9d5b386fa12e6ff923f53fa8e

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