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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file vickers_hardness-0.1.9.tar.gz.

File metadata

  • Download URL: vickers_hardness-0.1.9.tar.gz
  • Upload date:
  • Size: 10.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for vickers_hardness-0.1.9.tar.gz
Algorithm Hash digest
SHA256 a14e6ff7ae1c109f68ad98588a570b89701af7daede88ef0b8710f04ac8a530e
MD5 ac0506f68f81b54c0daf21b4e7521fc6
BLAKE2b-256 e6620c55d604d1bd2576f2ebb0c4ed2f652d076ed6e8c457cb4e9928ff6a146b

See more details on using hashes here.

File details

Details for the file vickers_hardness-0.1.9-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for vickers_hardness-0.1.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f24f278d2eb0e0ad83a2523c7853737282f9a5e76ae50d551de889d4c936c080
MD5 e1beb6455a2df3c195a8b346e3e4cb63
BLAKE2b-256 6751da5c6b83105dae39416e222bf4c6669b5cfb6b4bc016e3fe0a6a7a3de168

See more details on using hashes here.

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