Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sort(any): | |
less=[] | |
equal=[] | |
large=[] | |
if len(any)>1: | |
pivot=any[0] | |
for x in any: | |
if x<pivot: | |
less.append(x) | |
if x==pivot: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import libraries necessary for this project | |
import numpy as np | |
import pandas as pd | |
from time import time | |
from IPython.display import display # Allows the use of display() for DataFrames | |
# Import supplementary visualization code visuals.py | |
import visuals as vs | |
# Pretty display for notebooks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from class_vis import prettyPicture | |
from prep_terrain_data import makeTerrainData | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import pylab as pl | |
features_train, labels_train, features_test, labels_test = makeTerrainData() |