This repository provides a python library with the implementation of the Enhanced-Hammett model [1]
It requires numpy, scipy and pandas to function, as well as matplotlib for the visualization of results
This section provides a small tutorial with examples on how to use this library.
First of all import the library and the example dataset with it.
import hammett as hamThe data should be stored in a Pandas Dataframe structure, similar to the one provided as example
data = ham.get_experimental_data_Hudson_1962A $\rho$.
The example reports kinetic constants for substituted thiols (rows) which react with different benzylbromides (columns).
The calc_param function will compute a the values of
rho, sigma, k0, dicrho, dicsigma, dick0 = ham.calc_params(data)It is possible to build a new Dataframe to compare the initial data with the prediction by calling the following function:
prediction = ham.evaluate(data)To visualize the quality of the prediction you can use the plot_correlation function
ham.plot_correlation(data, prediction)