bloc.models#

Define physical models used in Bloc.

Attributes#

Classes#

PhysicalModel

General class for a physical prediction model.

SurfaceAreaModel

Predicts the surface area of carbon based on temperature and residence time.

KirkOthmer2004SurfaceArea

Predicts the surface area of carbon based on temperature and residence time.

Module Contents#

class bloc.models.PhysicalModel(model, imputer)#

Bases: object

General class for a physical prediction model.

model#
imputer#
fit(X, y)#
predict(X)#
class bloc.models.SurfaceAreaModel#

Bases: PhysicalModel

Predicts 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 instance KirkOthmer2004SurfaceArea.

The model uses a Linear regression trained on polynomial features of ; using a PolynomialFeatures with 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: SurfaceAreaModel

Predicts 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 instance KirkOthmer2004SurfaceArea.

The model uses a Linear regression trained on polynomial features of ; using a PolynomialFeatures with 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

Surface Area Model.

Surface Area Model.
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#