This module is geared towards beginners and does not require prior knowledge on a specific scientific discipline. The module is divided into three Jupyter notebooks as outlined at the beginning of this document. In addition to the notebooks mentioned, there are videos containing brief explanations about basic concepts in machine learning and what the code does in each step of the notebook. Below is an outline of the videos contained in each notebook with their respective links. These videos are already attached to the notebook.
This module offers two computing pathways: AWS (Amazon Web Services) or GCP (Google Cloud Platform). Users can choose their preferred cloud service to run the Jupyter notebooks, ensuring flexibilty and accessibilty based on their existing infrastructure or familairty. Detailed instructions for setting up and using either AWS or GCP for this module are provided within their corresponding folders within this repository.
- Introduction Video by Lorena Benitez
- Objectives of Exercise
- Step 1: Importing necessary packages into Google Colab
- Step 2: Loading training data and making sure it looks correct
- Step 3: Separate the training dataset into features and labels
- Step 4: Create a decision tree object and train it
- Step 5: Visualize our trained decision tree
- Step 6: Make predictions using testing data with our trained decision tree
- Step 7: Let's see how our decision tree model performed
- Step 8: Let's try using our summer 2020 tree model to predict 2021 data
This module teaches you how to create a simple Decision Tree using a structured dataset. In addition to the overview given in this README you will find the four Jupyter notebooks. The second notebook is optional.
-
1- Intro to Machine Learning: Decision Trees: This notebook provides a basic introduction to Machine Learning concepts, steps for creating and understanding a Decision Tree model, making predictions with it, and intuitively evaluating its performance.
-
2- (Optional) Quant. Comparison of 2020 DT Model Performance for (2020 vs 2021) Data: This notebook is optional, for students who would like to know a bit more about how to evaluate model performance quantitatively, and offers an introduction to why machine learning models require retraining from time to time.
-
3- Practice: This notebook provides a way to practice and test what you have learned from the first notebook. It includes basic instructions outlining every step discussed in the first notebook. Students are free to either copy and modify the code from the first notebook or they can choose to write it themselves.
-
4- Practice - Answer Key: This notebook provides the answers and explanation to the previous Practice exercise notebook. Check this notebook only after you have tried to complete the previous exercise yourself.
Included is a tutorial in the form of Jupyter notebooks. The main purpose of the tutorial is to help beginners without much coding experience to familiarize themselves with basic fundamental concepts within machine learning using health data (COVID dataset). It is also meant to be extended to other kinds of structured data. The tutorial walks through step by step the process of creating a Decision Tree and interpreting it. This module intends to provide an intuitive understanding of how machine learning model performance is evaluated.
To access this module, you will need to choose the corresponding folder (AWS or GCP) within the repository. Further instructions are contained within each folder to guide you through the setup process.
For Google Cloud Platform (GCP):
- Detailed instructions for setting up and using GCP for this module are provided within the GoogleCloud folder in the repository.
- Follow the steps to create a new user-managed notebook in Vertex AI Workbench, ensuring you select the appropriate configurations as outlined in the GCP instructions.
- Clone the repository from NIGMS into your Vertex AI notebook using the Git command: git clone https://github.com/NIGMS/Introduction-to-Data-Science-for-Biology.git This will download our tutorial files into a folder called Introduction-to-Data-Science-for-Biology
For Amazon Web Services (AWS):
- Detailed instructions for setting up and using AWS for this module are provided within the AWS folder in the repository.
- Follow the steps to create a new Jupyter notebook instance in Amazon SageMaker, ensuring you select the appropriate configurations as outlined in the AWS instructions.
- Clone the repository from NIGMS into your SageMaker notebook using the Git command: git clone https://github.com/NIGMS/Introduction-to-Data-Science-for-Biology.git This will download our tutorial files into a folder called Introduction-to-Data-Science-for-Biology.
Please refer to the specific instructions within each folder (AWS or GCP) for more detailed ssetup guidance.
Please refer to the specific software requirements within each folder (AWS or GCP) for more detailed setup guidance. In addition all package requirements are installed by following the instructions Step 1 of the notebook "Intro to Machine Learning Decision Trees".
All original data from this module was originally sourced from the following sites:
- COVID cases data (California Health and Human Services Agency)
- COVID vaccination data (Los Angeles Times)
- Unemployment data (California Employment Development Dept.)
- Election data (Harvard University)
- SFSU/UCSF M.S. Bridges to the Doctorate Program: cloud-based learning modules supplement (T32GM142515)
- Demystifying Machine Learning and Best Data Practices Workshop Series for Underrepresented STEM Undergraduate and MS Researchers bound for PhD Training Programs (T34-GM008574)
- The creation of this training module was supported by the National Institute Of General Medical Sciences of the National Institutes of Health under Award Number 3T32GM142515-01S1
Text and materials are licensed under a Creative Commons CC-BY-NC-SA license. The license allows you to copy, remix and redistribute any of our publicly available materials, under the condition that you attribute the work (details in the license) and do not make profits from it. More information is available here.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License