Skip to main content

MixtureMetrics: A Comprehensive Package to Develop Additive Numerical Features to Describe Complex Materials for Machine Learning Modeling

Project description

MixtureMetrics: Mixture Descriptors Calculator

This Python project calculates an additive scheme for mixture descriptors of multi-component materials. The algorithm processes input from two .csv files and computes various mixture descriptors.

Overview

The algorithm requires two input files:

  1. Descriptors File: Contains individual descriptors for each component.
  2. Mole Fraction File: Contains mole fraction values for each component in each mixture. The main function, mixture_descriptors_to_csv, processes these inputs and generates 12 CSV files, each corresponding to a different mixture descriptor metric.

Getting Started

Prerequisites

Ensure you have Python 3.x installed. You will also need pip to install the package.

Installation

  1. Download the Package:

    • Clone the repository or download the ZIP file from GitHub.
    • Extract the contents of the ZIP file.
  2. Install the Package:

    • Open a command-line interface (CLI).

    • Navigate to the directory containing the extracted package files.

    • Run the following command to install the package:

      pip install .
      

Usage

After installing the package, you can use it in your Python code. Here’s a basic example of how to use the main function:

from MixtureMetrics import mixture_descriptors_to_csv

# Define file paths
descriptors_file_path = 'path/to/descriptors.csv'
mole_fraction_file_path = 'path/to/mole_fraction.csv'
output_directory = 'path/to/output_directory'  # if output path string is empty or None and not provided,it defaults to use the current working directory and if the provided folder is not existed it creates a folder in the given path or in  working directory

# Call the function
mixture_descriptors_to_csv(descriptors_file_path, mole_fraction_file_path, output_directory)

Arguments

descriptors_file_path: Path to the .csv file containing individual descriptors for each component. mole_fraction_file_path: Path to the .csv file containing mole fraction values for each component in each mixture. output_directory: Directory where the 12 output .csv files will be saved. Output The code computes and saves 12 different mixture descriptors, each in its own .csv file within the specified output directory.

Contributing

Contributions are welcome! Please open an issue or submit a pull request if you have suggestions or improvements.

License

This project is licensed under the GNU General Public License - see the LICENSE file for details.

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

MixtureMetrics-1.0.1.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

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

MixtureMetrics-1.0.1-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: MixtureMetrics-1.0.1.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for MixtureMetrics-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ba2f2474fd66f494384c963847779bd38a1d1de889e850538da52b3f3d81a2b1
MD5 35d6fa8454380070e658a9013ed78ec5
BLAKE2b-256 88b020d6a04d1f8845441745b00fa90bf3a370e6be66180d24e994683fd52b6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: MixtureMetrics-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for MixtureMetrics-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f9008d256ca12bfcd4c67ec00d7ade65b923b1293363df6673e60b04f93316d9
MD5 dac412538a30a3e1acae2e9240055a2f
BLAKE2b-256 e877e1fcdf3e2081bc14700cfd4e1fde369f424820bb004d000bbb2550e884a9

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