bloc.models#
Define physical models used in Bloc.
Attributes#
Classes#
General class for a physical prediction model. |
|
Predicts the surface area of carbon based on temperature and residence time. |
|
Predicts the surface area of carbon based on temperature and residence time. |
Module Contents#
- class bloc.models.PhysicalModel(model, imputer)#
Bases:
objectGeneral class for a physical prediction model.
- model#
- imputer#
- fit(X, y)#
- predict(X)#
- class bloc.models.SurfaceAreaModel#
Bases:
PhysicalModelPredicts the surface area of carbon based on temperature and residence time.
The model must be initialized with data to be fitted through the
fit()method. Child classes come with prefitted data. See for instanceKirkOthmer2004SurfaceArea.The model uses a Linear regression trained on polynomial features of ; using a
PolynomialFeatureswith degree 2.- fit(temperature, residence_time, surface_area)#
Fit the model to experimental or reference data.
Note the model uses a LinearRegression with temperature and log10(residence_time) as input.
- predict(temperature, residence_time)#
Predict the surface area of carbon based on temperature and residence time.
- model#
- imputer#
- class bloc.models.KirkOthmer2004SurfaceArea#
Bases:
SurfaceAreaModelPredicts the surface area of carbon based on temperature and residence time.
The model must be initialized with data to be fitted through the
fit()method. Child classes come with prefitted data. See for instanceKirkOthmer2004SurfaceArea.The model uses a Linear regression trained on polynomial features of ; using a
PolynomialFeatureswith degree 2.- TEMPERATURE_DATA#
- RESIDENCE_TIME_DATA#
- SURFACE_AREA_DATA#
Predicts the surface area of carbon based on temperature and residence time.
Reference#
Kirk-Othmer Encyclopedia of Chemical Technology, Volume 4, 5th Edition ISBN: 978-0-471-48519-3; March 2004 https://www.wiley.com/en-us/Kirk-Othmer+Encyclopedia+of+Chemical+Technology%2C+Volume+4%2C+5th+Edition-p-9780471485193
Examples
- fit(temperature, residence_time, surface_area)#
Fit the model to experimental or reference data.
Note the model uses a LinearRegression with temperature and log10(residence_time) as input.
- predict(temperature, residence_time)#
Predict the surface area of carbon based on temperature and residence time.
- model#
- imputer#
- bloc.models.carbon_model#