This file contains hidden or 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
epoch = 0 | |
def next_batch(images, labels, start, batch_size): | |
global epoch | |
end = start + batch_size | |
if end > len(images): | |
# After each epoch we update this | |
epoch += 1 | |
start = 0 |
This file contains hidden or 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
#!/bin/sh | |
if nvidia-docker run -d -it -p $JUPYTERPORT:8888 --name $USER-jupyter_gpu -v /data/users/$USER/notebooks:/notebooks \ | |
thejevans/jupyter-tensorflow-keras-opencv-gpu /bin/bash -c "useradd -u $UID $USER; jupyter notebook --allow-root" 2> /dev/null | |
then | |
echo "booting into container..." | |
else | |
docker start $USER-jupyter_gpu > /dev/null | |
echo "starting container..." | |
fi | |
echo "your port is $JUPYTERPORT" |
This file contains hidden or 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
letters_guessed = 'blah' | |
secret_word = 'hello' | |
output = '' | |
for a in secret_word: | |
if a in letters_guessed: | |
output += a | |
else: | |
output += '_' | |
This file contains hidden or 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/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
@author: Emily Blick | |
@collaborators: | |
@hours_spent: | |
""" | |
import random | |
import numpy as np |
This file contains hidden or 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
//// init | |
//int pin1A = 11; | |
//int pin2A = 10; | |
//int duty = 25; | |
// | |
//void setup() { | |
// // put your setup code here, to run once: | |
// Serial.begin(9600); | |
// pinMode(pin1A, OUTPUT); | |
// pinMode(pin2A, OUTPUT); |
This file contains hidden or 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
from sklearn.base import BaseEstimator, ClassifierMixin | |
class DiscreteNB(BaseEstimator, ClassifierMixin): | |
def __init__(self): | |
self.MLE_array = np.empty() | |
BaseEstimator.__init__(self) | |
ClassifierMixin.__init__(self) | |
def get_params(self, deep=True): | |
return BaseEstimator.get_params(self, deep=True) |
This file contains hidden or 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
Material | Short | Long | Bandpass | |
---|---|---|---|---|
ZnS | 83.39 | 97.33 | ||
Ge | 48.25 | 48.6 | ||
ZnS | 756.31 | 761.47 | ||
Ge | 403.51 | 412.85 | ||
ZnS | 710.33 | 720.06 | ||
Ge | 377.93 | 382.28 | ||
ZnS | 696.05 | 705.03 | ||
Ge | 370.17 | 370.42 | ||
ZnS | 696.91 | 709.26 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
(1, 2, 3, 4, 7, 6, 5, 8, 9): [3, 5, 7, 11, 13, 11, 13, 17] | |
(1, 2, 3, 4, 9, 8, 5, 6, 7): [3, 5, 7, 13, 17, 13, 11, 13] | |
(1, 2, 3, 8, 5, 6, 7, 4, 9): [3, 5, 11, 13, 11, 13, 11, 13] | |
(1, 2, 3, 8, 9, 4, 7, 6, 5): [3, 5, 11, 17, 13, 11, 13, 11] | |
(1, 2, 5, 6, 7, 4, 3, 8, 9): [3, 7, 11, 13, 11, 7, 11, 17] | |
(1, 2, 5, 6, 7, 4, 9, 8, 3): [3, 7, 11, 13, 11, 13, 17, 11] | |
(1, 2, 9, 4, 3, 8, 5, 6, 7): [3, 11, 13, 7, 11, 13, 11, 13] | |
(1, 2, 9, 4, 7, 6, 5, 8, 3): [3, 11, 13, 11, 13, 11, 13, 11] | |
(1, 2, 9, 8, 3, 4, 7, 6, 5): [3, 11, 17, 11, 7, 11, 13, 11] | |
(1, 2, 9, 8, 5, 6, 7, 4, 3): [3, 11, 17, 13, 11, 13, 11, 7] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.