Skip to main content

Predicting load dependent Vickers hardness based on chemical composition.

Project description

VickersHardnessPrediction

Predicting load dependent Vickers hardness based on chemical composition

Citations

To cite the prediction of load dependent Vickers hardness, please reference the following work:

Zhang. Z, Tehrani. A.M., Oliynyk. A.O., Day. B and Brgoch. J, Finding Superhard Materials through Ensemble Learning, Adv. Mater. 2020, 33, 2005112.

Prerequisites

To use the script provided here requires:

Usage

IMPORTANT To use all scripts smoothly, please clone the entire repo with all files in one folder and work within that folder.

To train the model and predict the hardness of some materials you are interested in, simply following these steps:

1 Generate descriptors

Firstly, prepare your compositions in an excel file, and name it pred_hv_comp.xlsx so that the script can recognize this file. The first column of the pred_hv_comp.xlsx file should be named as Composition.

To generate descriptors for your compositions, simply run:

python generate_des.py

You will have an output file named pred_hv_descriptors.xlsx containing all compositional descriptors.

IMPORTANT STEP: now please manualy add a new column with load values (unit: N) at the end of the descriptor file you just generated. It is up to you at which load you want to predict the hardness.

2 Train the model and make prediction of your compounds

We have provided the training dataset in the file hv_comp_load.xlsx where you will find chemical compositions, hardness value and corresponding load value. We also provided the descriptors of our training set (hv_des.xlsx). The training process of our model will be automatically done when you run the prediciton script as this:

python hv_prediction.py

Results will be stored in a file named predicted_hv.xlsx. Basically the script will first train the model using the dataset we constructed, then read the pred_hv_descriptors.xlsx file you just generated and give you the predicted hardness at any load value you would be interested in.

Authors

This code was created by Ziyan Zhang who is advised by Jakoah Brgoch.

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

vickers_hardness-0.1.9.tar.gz (10.6 MB view hashes)

Uploaded Source

Built Distribution

vickers_hardness-0.1.9-py2.py3-none-any.whl (895.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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