Views
No views yet
LinearRegression model to predict the number of monkeys sterilized per year based on historical data.Monkey.xlsx file.linear_regression_model.pkl: The saved scikit-learn Linear Regression model object.joblib and make predictions:1import joblib
2from huggingface_hub import hf_hub_download
3
4model_path = hf_hub_download(repo_id="Chama99/monkey-sterilization-model", filename="linear_regression_model.pkl")
5model = joblib.load(model_path)
6
7# Example prediction for year 2030
8predicted_sterilized = model.predict([[2030]])
9print(f"Predicted sterilized monkeys in 2030: {int(predicted_sterilized[0])}")