Skip to content

Anodyine/MachineLearningBasics

Repository files navigation

Getting Started

Windows and Ubuntu setup instructions are provided below

Ubuntu

To get started easily with Ubuntu and Visual Studio Code follow the following steps:

Installing Visual Studio and Extensions

  1. In the terminal run: sudo apt-get install code
  2. Open Visual Studio Code
  3. Install the following extentions from the extension tab
  • Python Extension Pack
  • Code Runner

Setup Python Environment

  1. Open /LinearRegression/informativeFeatureIdentification.py
  2. Click on the python version number in the bottom right corner of VS code
  3. Click Create Virtual Environment
  4. Click Venv
  5. Check requirements.txt
  6. Click ok

Install tkinter to show interactive graphs

  1. In the terminal run: sudo apt-get install python3-tk

Run code to test

  1. Open /LinearRegression/informativeFeatureIdentification.py and click on the play button in the top right corner
  2. Observe the graph that tests linear regression

Windows

To get started easily with Windows and Visual Studio Code follow the following steps:

Installing Python

  1. Download and install python3 from here: https://www.python.org/downloads/

Installing Visual Studio and Extensions

  1. Download and install Visual Studio Code from here: https://code.visualstudio.com/Download
  2. Open Visual Studio Code
  3. Search for "Code Runner" in the extensions tab
  4. Install the one with .run in the icon
  5. Search for "Python Extension Pack" in the extensions tab
  6. Install the Extension Pack
  7. Restart Visual Studio Code

Setting up Python environment

  1. Open a powershell terminal in visual studio and ensure this directory is the current working directory
  2. Run Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
  3. Run python -m venv .venv
  4. Run ..venv\bin\activate
  5. Run pip install -r "requirements.txt"

Set Up Run in Terminal (So we can receive user input)

  1. Click on File -> Preferences -> Settings
  2. Scroll down the Run Code configuration and click on it
  3. Scroll down until you see Run in Terminal and click on that box to check it
  4. Near the top right corner, there should be a play button with a dropdown arrow next to it. Click the dropdown arrow. (This was added by .run extension)
  5. Click run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages