Regression with materials data
Let us try the code together. You can download my notebooks and the accompanying files here, then work through the example in Colab or Jupyter.
Download all files for this lesson (.zip)
Choose your notebook or data
- BinaryLogReg_CorrData.ipynb · Python notebook
- OrdReg_tut.ipynb · Python notebook
- README.md
- RT_TEprop.csv
- RegTut_part1.ipynb · Python notebook
- RegTut_part2.ipynb · Python notebook
- SyntheticCorrData2.csv
- SyntheticCorrData3.csv
Let us open your notebook in Colab
You do not need a GitHub account or permission to view a repository. We will use the notebook you download from this page.
- Choose a .ipynb notebook above and save it to your computer. If your browser displays its text, choose Save As and keep the
.ipynbextension. - Open Google Colab ↗. Choose Upload in the Open notebook window. If that window is not visible, choose File → Open notebook → Upload.
- Select the notebook you just downloaded. You can read it immediately; sign in to your own Google account when you want to run it.
- Run the first setup cell to fetch the accompanying data from my website, then continue through the original example. Keep any additional images or folders named as the notebook expects.
The Colab link opens its notebook chooser; it does not automatically import the downloaded file. I have kept this small upload step explicit so that you know which notebook you are opening.
Would you prefer Jupyter?
Download and extract the ZIP, open the notebook in Jupyter, and run the cells in order. The supplied data is already beside the notebook; the setup cell only downloads a file if it is missing. See the original README, where supplied, for references and data provenance.