Instructions to use King-8/entrepreneurial-linear-regression with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use King-8/entrepreneurial-linear-regression with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("King-8/entrepreneurial-linear-regression", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Entrepreneurial Readiness Linear Regression Model
This is a linear regression model trained to predict entrepreneurial readiness scores (from 0 to 10) based on financial, personal, and psychological factors like:
- Savings, income, expenses
- Risk level, confidence, sales skills
- Age, number of dependents
- Difficulty of business idea
π§ͺ Model Details
- Algorithm: Linear Regression
- Library: scikit-learn
- Input: 11 numerical features
- Output: Readiness score (0β10)
- Evaluation:
- RΒ² Score: 0.94
- MSE: 0.74
ποΈ Files
readiness_model.pklβ Trained regression modelreadiness_scaler.pklβ StandardScaler used during training
π Usage Example
Use this example to load the model and make predictions:
import joblib
import pandas as pd
model = joblib.load("readiness_model.pkl")
scaler = joblib.load("readiness_scaler.pkl")
input_data = pd.DataFrame([{
"savings_amount": 10000,
"monthly_income": 3000,
"monthly_expenses": 2000,
"monthly_entertainment": 300,
"sales_skills": 6,
"risk_level": 5,
"age": 22,
"dependents": 0,
"assets": 2000,
"confidence": 7,
"difficulty_of_business_idea": 6
}])
scaled_input = scaler.transform(input_data)
prediction = model.predict(scaled_input)
print(f"Predicted Readiness: {prediction[0]:.2f}")
- Downloads last month
- -
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support