Skip to content

rishabhvarshney14/Formula-to-Name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Formula to Name

Predicts the chemical name of any (real or not) chemical formula.

sample_image

Check out the Live App here.

This scrape data from Wikipedia for training.

How to Use

  1. Create a virtual environment and activate it
virtualenv formula-env
source env/bin/activate
  1. Install required modules pip install -r requirements.txt

  2. Build the dataset (for custom dataset add train.csv and valid.csv in data folder) python src/get_data.py

  3. Train the model python src/train.py

You can give args to train.py

args shortcut type example default
--learning_rate -lr float 0.02 0.0003
--epochs -- int 10 10
--continue_training -- bool True False

For example

python src/train.py -lr 0.001 --continue_training True

  1. Test the model python src/test.py <formula>

for example python src/test.py NaOH

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages