Skip to main content

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.

Metadata

Release files for vickers_hardness 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vickers_hardness 0.1.9
File Size Uploaded
vickers_hardness-0.1.9.tar.gz 10.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for vickers_hardness 0.1.9
File Interpreter ABI Platform
vickers_hardness-0.1.9-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 11.5 MB

Release files / vickers_hardness-0.1.9.tar.gz

Download URL vickers_hardness-0.1.9.tar.gz
Size 10.6 MB
Tags Source
SHA-256 checksum
How to use checksums
a14e6ff7ae1c109f68ad98588a570b89701af7daede88ef0b8710f04ac8a530e
BLAKE2b-256 checksum
How to use checksums
e6620c55d604d1bd2576f2ebb0c4ed2f652d076ed6e8c457cb4e9928ff6a146b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.27.1

Release files / vickers_hardness-0.1.9-py2.py3-none-any.whl

Download URL vickers_hardness-0.1.9-py2.py3-none-any.whl
Size 895.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f24f278d2eb0e0ad83a2523c7853737282f9a5e76ae50d551de889d4c936c080
BLAKE2b-256 checksum
How to use checksums
6751da5c6b83105dae39416e222bf4c6669b5cfb6b4bc016e3fe0a6a7a3de168
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.27.1

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page