DesignADVANCED
Claude
4.9

Developing a Machine Learning Model to Predict Heart Disease Risk

Train a machine learning model to predict the risk of heart disease

The Prompt

Develop a machine learning model to predict the risk of heart disease based on a set of clinical and lifestyle factors. The model should use a binary classification algorithm, taking into account the following features: age, sex, blood pressure, cholesterol levels, smoking status, and physical activity level. Consider the following aspects: data preprocessing, feature engineering, model selection, model training, model evaluation, and model deployment. Please deliver your model in a Python code snippet, including data loading, model training, and model evaluation. The model should achieve a minimum accuracy of 85% on a test dataset. Please ensure that the model addresses the following key questions: What are the most critical factors influencing heart disease risk? How does the model perform on different subgroups of patients? What are the implications of the model's predictions for clinical practice?

Example Output

The model uses a random forest classifier, achieving an accuracy of 92% on a test dataset of 10,000 patients. The most critical factors influencing heart disease risk are age, blood pressure, and cholesterol levels. The model performs well on different subgroups of patients, with a slight bias towards older patients. The model's predictions suggest that 20% of patients are at high risk of heart disease, requiring urgent clinical attention.

Best Use Cases

Health and Fitness

Frequently Asked Questions

What is the "Developing a Machine Learning Model to Predict Heart Disease Risk" prompt used for?

Train a machine learning model to predict the risk of heart disease

Which AI model works best with this prompt?

This prompt is optimized for Claude but also works with Claude 3, Gemini Pro, and other LLMs.

Is this prompt free to use?

Yes — all PromptForgeHub prompts are free to copy and use. Click the copy button and paste into your AI tool.

How difficult is this prompt?

Difficulty: ADVANCED. Best suited for advanced prompt engineers.

Official Source

PromptForgeHub
Verified Official

Details

Views15
CategoryDesign
AI ModelClaude
UpdatedJun 25, 2026

Need Custom Prompts?

Our team of prompt engineers can build custom AI workflows for your business needs.

Contact Sales

Explore 1,000+ more AI prompts for business, marketing, eCommerce & more.

Browse All Prompts