Siddhant Shah

A Basic AI Model Implementation

This is a demo for AI model development.

25 Jun 2024 3 min

Machine learning

Contents

The example used here analyses Customer Churn Data using a Random Forrest Classifier. This is used for demonstrative purposes only and the steps, libraries and data used by you may vary.

The Implementation Process

Data Collection & Processing

  • Start by collecting data from some verified data source.
  • Then pre-process the entire dataset (if needed) to ensure uniformity.
  • ⁠⁠Separate data into training and testing sets. Testing sets will only be used after the model has been selected. Data leakage is unacceptable.

⁠Implement Models and Compare Performance

  • ⁠Choose some Machine Learning Models. These will be implemented in Python using the Scikit-learn library, resources for which can be found at the end.
  • ⁠Implement your selected models with various hyper-parameter values for each model.
  • ⁠Train each such configuration on the training data set and evaluate it. Evaluation will consist of the following steps
    • After training, use the data from a sub-dataset to make predictions.
    • Use these predictions and compare them with the actual values from the data. (This process is called validation.)
    • Based on the predictions and the actual values, compute values of different metrics such as accuracy, recall, mean-squared error, or others depending on the use case.

Insights & Analysis

  • Based on the previous metric, choose the ideal model configuration.
  • ⁠For the selected model, explain what the values of the metrics means and what the corresponding values imply. Explain why the particular metrics were chosen.
    • Results can shown in terms of Confusion Matrices, variations in metrics with change in values, etc.
    • Possible insights can include improved performance in a specific use-case, a hypothesis regarding the structure of the data based on the model, etc.

Possible topics

  1. ⁠Pneumonia or Diabetes Prediction:
    Here, measured values will be vitals such as heart rate, body temperature, previous medical history, etc. The goal variable will be a binary value (0 or 1) denoting the absence or presence of the disease.
  2. ⁠Wildfire Threat:
    Here the measured values will include distance from nearby forrest fire, settlements, water bodies, etc. The goal variable will be a score denoting how likely a wildfire is.

The values mentioned for each topic are not exhaustive. Other values can and should be used. The student should be able to justify the use of every value through some direct or indirect logic.

Resources

  1. ⁠Intro to Python (Official Python Documentation): https://www.python.org
  2. ⁠Scikit-Learn Documentation: https://scikit-learn.org/stable/

Or get new writing by email.

Whenever I publish. No other email, ever.

← All writing