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
Slide 3: | |
void setup() { | |
pinMode(6, OUTPUT); | |
} | |
void loop() { | |
int j = analogRead(1); | |
analogWrite(6, j/4); | |
} |
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
Link to presentation: | |
https://docs.google.com/presentation/d/1rklrRGW5udTUR9XmM4PtCNwZ1L_dxudQS08pqznV3J4/edit?usp=sharing |
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
""" | |
John Evans | |
PHYS476 | |
Homework 2 | |
Problem 2 | |
3/10/2018 | |
""" | |
import sys | |
from sklearn.tree import DecisionTreeClassifier | |
from sklearn.ensemble import RandomForestClassifier |
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
""" | |
John Evans | |
PHYS476 | |
Homework 2 | |
Problem 1 | |
3/10/2018 | |
""" | |
import sys | |
from sklearn.neighbors import KNeighborsClassifier | |
import pandas as pd |
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
proxy: | |
secretToken: "6b6847da2357051a396859394124027c730f8a47dd82ac22fa7a3491fa72d25b" | |
https: | |
hosts: | |
- jupyter.thejevans.com | |
letsencrypt: | |
contactEmail: [email protected] | |
hub: | |
extraEnv: |
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
I set everything up in a stable way on my home system, finally. This has gpu support. | |
you have a home directory that is fast, but doesn't have much space: | |
~/ | |
you have a data directory that is a bit slower, but has tons of space: | |
/data/users/<username> | |
your jupyter directory is: | |
/data/users/<username>/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
#!/usr/bin/python | |
import sys | |
from array import * | |
# returns true if x is prime, false is not | |
def is_prime(x): | |
if x < 2: | |
return True | |
if x >= 2: |
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
# Card has nvidia driver | |
lspci -nnk -d 10de:1c03 | |
lspci -nnk -d 10de:10f1 | |
modprobe vfio | |
modprobe vfio_pci | |
# VGA | |
echo '0000:01:00.0' > /sys/bus/pci/devices/0000:01:00.0/driver/unbind | |
echo '10de 1c03' > /sys/bus/pci/drivers/vfio-pci/new_id |
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
echo 1 > /sys/bus/pci/devices/0000:01:00.0/remove | |
echo 1 > /sys/bus/pci/devices/0000:01:00.1/remove | |
echo 1 > /sys/bus/pci/rescan | |
sleep 1 | |
# Card has nvidia driver | |
lspci -nnk -d 10de:1c03 | |
lspci -nnk -d 10de:10f1 |
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
# coding: utf-8 | |
# ### Homework 4 | |
# #### Problem 3 -- Autoencoder | |
# ###### John Evans | |
# ###### 4/26/18 | |
# ##### Imports |
OlderNewer