Downloads · 30 days
0
adomfosugit/BHFP5S57
BHFP5S57 is a tabular regression model from adomfosugit. Use it for the tabular regression task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This project implements a machine learning model to predict Bottom Hole Pressure (BHP) in oil wells based on various well parameters.
Downloads · 30 days
0
Access
Public
Updated Apr 15, 2025
Repo size
225 KB
Likes
0
Public
Click a slice to open those files.
.pkl225 KB · 99%
From the Hugging Face model README
This project implements a machine learning model to predict Bottom Hole Pressure (BHP) in oil wells based on various well parameters.
The model uses these engineered features:
(WCT/100)*0.433 + (1-(WCT/100))*0.273Fluid gradient * DepthKwadwo Fosu Adom
import pickle
import pandas as pd
# Load your test data
test_df = pd.read_csv('your_test_data.csv') # or other source
# Calculate derived features
test_df['Fluid gradient'] = (test_df['WCT']/100)*0.433 + (1-(test_df['WCT']/100))*0.273
test_df['Ph'] = test_df['Fluid gradient'] * test_df['Depth']
# Features to scale (must match training)
scaled_features = ['Qo', 'GOR', 'THT', 'Pwh(psi)', 'Ph', 'Depth']
# Load model and scaler
with open('modelBIGDATA5US1P57.pkl', 'rb') as file:
saved_data = pickle.load(file)
model = saved_data['model']
scaler = saved_data['scaler']
# Make predictions
X_test_scaled = scaler.transform(test_df[scaled_features])
test_df['Predicted_BHP'] = model.predict(X_test_scaled)