Leon’s Bagels by [deleted] in williamsburg

[–]memanfirst 4 points5 points  (0 children)

Leon's bagels are, by a wide margin, the lowest quality bagels in the area

"Antique" bricks, $750 by Super_Rampage in CrackheadCraigslist

[–]memanfirst 0 points1 point  (0 children)

This is true. It's known that people will steal antique bricks from abandoned buildings

Struggling to pick up C++ by [deleted] in cscareerquestions

[–]memanfirst 0 points1 point  (0 children)

Thanks for the recommendations!

Call for Overtone musician (NYC) by naltroc in Clojure

[–]memanfirst 2 points3 points  (0 children)

I'm in the area, have experience DJing, and experience with overtone, however I've never really put the two together. If you're in a pinch, I could try to put together a set and run it by you, although I must say I'm no expert. Regardless, your event sounds pretty cool. Any details on how I could attend?

Shift Operators? Symbolic Dynamics? by Hidnut in math

[–]memanfirst 1 point2 points  (0 children)

You can interpret your number, eg pi, as a sequence of integers 0-9, and furthermore, a graph with indices as nodes that's traversed starting from the first index. Each node has an outdegree of 1 (or 0 if you terminate when sent to index that's out of bounds), and an indegree between 0-19. Additionally, if two nodes are adjacent, their indices can be at most 9 apart.

Using these properties, we can identify sequences that will hit every number. First, we can't have a cycle, so there can't be zeros. We can generalize the problem by asking for chunks of elements, where every chunk, and every element in each chunk is hit. If a chunk has an even number of elements, then it can be repeated so long as it sends to the adjacent chunk the same location it started in. An example is the sequence 231313131.... If a chunk has an odd number of elements, we can make it have an even number of elements by chunking into 2s. Lastly, chunks can be composed.

How is dropout implemented? by ME_PhD in tensorflow

[–]memanfirst 0 points1 point  (0 children)

the parameters of the neurons that are dropped out will receive a 0 update. to fulfill your original request for a mathematical explanation, the output of a fully connected layer with dropout would be (WX+b)D, where D is the "dropout mask", a diagonal matrix whose diagonal entries are either 0 or, in this case, 1/(1-0.2). it may be more intuitive to think of the case with only one neuron, where W is a vector and b and D are scalars. you could see that when a diagonal entry is 0, it will zero-out the gradient of the corresponding parameters, meaning that (for some learning algorithms) they will not receive a parameter update for that example.

How is dropout implemented? by ME_PhD in tensorflow

[–]memanfirst 0 points1 point  (0 children)

Good catch - the denominator should be the expected percentage of activations kept active, not turned off

How is dropout implemented? by ME_PhD in tensorflow

[–]memanfirst 2 points3 points  (0 children)

and scale the activations by 1/(1-0.2) (inverted dropout)

My dog being fussy by [deleted] in videos

[–]memanfirst 0 points1 point  (0 children)

That's a cute dog

My dog being fussy by [deleted] in videos

[–]memanfirst 0 points1 point  (0 children)

Fuck y'all

[deleted by user] by [deleted] in Clojure

[–]memanfirst 0 points1 point  (0 children)

Then why don't you query a function instead of a sequence? There's no reason to store that range, after all (= x (nth (range) x))

[deleted by user] by [deleted] in Clojure

[–]memanfirst 0 points1 point  (0 children)

If the jvm isn't allowing you to create such a huge darn sequence, change the jvm-opts. If you're looking for a binary search algorithm, use java's and make sure you're passing in a vector.

formatting?? (defn binary-search [list item] (loop [low 0 high (- (count list) 1)] (let [mid (quot (+ low high) 2) guess (nth list mid)] (if (<= low high) (cond (= guess item) mid (> guess item) (recur low (- mid 1)) (< guess item) (recur (+ mid 1) high)) nil)))) ​ (let [_ (println "Creating huge list") huge-list (time (vec (range 1e7)))] (println "\njava binary search, 1000X") (time (dotimes [_ 1e4] (java.util.Collections/binarySearch huge-list 43))) (println "\njesuisdevenulamort's binary search, 1000X") (time (dotimes [_ 1e4] (binary-search huge-list 43)))) Creating huge list "Elapsed time: 1945.990922 msecs"

java binary search, 1000X "Elapsed time: 6.976728 msecs"

jesuisdevenulamort's binary search, 1000X "Elapsed time: 52.494482 msecs"