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
from sklearn.tree import export_graphviz | |
out = export_graphviz(forest.estimators_[0], out_file='tree.dot') | |
# From terminal: | |
# dot -Tpng tree.dot -o tree.png | |
# http://scikit-learn.org/stable/modules/generated/sklearn.tree.export_graphviz.html |
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
(defn feed-forward [input weights biases] | |
(doseq [[w b] (map vector weights biases)] | |
(set! input (sigmoid (+ (dot w input) b)))) | |
input) |
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
diff --git a/abakus-statutter/01-03-foreningen.tex b/abakus-statutter/01-03-foreningen.tex | |
index 8859376..c17b1ff 100644 | |
--- a/abakus-statutter/01-03-foreningen.tex | |
+++ b/abakus-statutter/01-03-foreningen.tex | |
@@ -15,5 +15,5 @@ skal derfor godkjennes av generalforsamlingen ved kvalifisert flertall. | |
\subsection{} | |
Foreningens offisielle logo skal alltid benyttes på fane og diplomer. | |
-Foreningens navn eller logo skal alltid benyttes på medaljer. | |
+Foreningens navn og/eller logo skal alltid benyttes på medaljer. |
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
diff --git a/Makefile b/Makefile | |
index d5c09cb..bd4e4c8 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -11,7 +11,7 @@ all: $(ABAKUS).pdf $(FOND).pdf | |
test: clean all jekyll | |
-%.pdf: %.tex | |
+%.pdf: *.tex |
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
from scipy.misc.pilutil import imread, imsave | |
import numpy as np | |
einstein = imread('infile.png') | |
final_image = np.multiply(einstein, 1.0) # Funker ikke | |
final_image = np.multiply(einstein, 1) # Funker | |
final_image = np.multiply(einstein, 1.0).astype(int) # Funker fortsatt ikke |
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
from scipy.misc.pilutil import imread, imsave | |
import numpy as np | |
def gamma_correction(img, correction): | |
img = np.multiply(img, 1.0/255) | |
img = np.power(img, correction) | |
return img | |
einstein = imread('TestImages/Question 4/einstein_lowcontrast.png') |
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
from readMap import * | |
from heapq import * | |
class Node(object): | |
def __init__(self, x, y, walkable=None): | |
self.x = x | |
self.y = y | |
self.walkable = walkable if walkable else True |
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/env python | |
print "Hello World" |
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
.thumb | |
.syntax unified | |
.include "gpio_constants.s" | |
.text | |
.global Start | |
.global GPIO_ODD_IRQHandler | |
Start: |
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
.thumb | |
.syntax unified | |
.include "gpio_constants.s" // Register-adresser og konstanter for GPIO | |
.global GPIO_ODD_IRQHandler | |
.thumb_func | |
.text | |
.global Start |
NewerOlder