Skip to content

Gflemin/responsibledatascience

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book cover

Code repository

Responsible Data Science:

Transparency and Fairness in Algorithms

Grant Fleming and Peter Bruce

R

The R scripts for each chapter are located within the chapters/ folder of the repository. Each of these scripts "source" (load) functions and packages from other, relative paths within the repository. As such, we recommend that readers interested in running the scripts do the following.

  1. Double click the .Rproj file to open an RStudio session.
  2. Open any of the scripts from within the chapters/ folder.
  3. Execute the setup code chunk within the script and enter any prompts to install packages.
  4. Run the script.

Note that running these scripts without modification requires:

  • renv >= 0.10.0
  • R >= 3.6
  • RStudio >= 1.2

Some code mentioned in the book is still forthcoming. This README will be updated when it is made available.

Python

The Python code for the book is exclusively for the facial recognition example in Chapter 8. Unfortunately, the code and data for this chapter is large in size (>600 MB) and does not fit into the code repository itself. To download and run it yourself, you should do the following:

  1. Navigate to https://www.wiley.com/en-us/Responsible+Data+Science-p-9781119741640 and download the file labeled "Code and Data for Chapter 8" in the "Downloads" section of the page.
  2. Unzip the Code_and_Data_for_Chapter_8.zip file to a folder on your local computer.
  3. Upload the code_and_data.zip folder within your new Code_and_Date_for_Chapter_8 folder to the "My Drive" folder of your Google Drive account without unzipping it.
  4. Navigate to https://colab.research.google.com/notebooks/ and click "Upload" to upload the ch8_fairness_in_computer_vision.ipynb file from your computer into Google Colab.
  5. Run the first code chunk (from google.colab import drive...) and input the authentication code.
  6. Run the remaining code within the script.

See also

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages