View grad_use.py
import tensorflow as tf
v = tf.Variable(initial_value=[1,2], dtype=tf.float32)
x = tf.square(v)
x = tf.Print(x, [v])
minimize = tf.train.AdamOptimizer().minimize(x)
with tf.Session() as sess:
sess.run(tf.global_variables_initializer())
# Does not print v.
View entry.py
from fractalai.policy import GreedyPolicy
from fractalai.model import RandomDiscreteModel
from fractalai.fractalmc import FractalAI
from fractalai.environment import AtariEnvironment
from fractalai.monitor import AtariMonitorPolicy
from alex_sandbox.dqn.wrappers import SonicDiscretizer, AllowBacktracking
import numpy as np
import retro
View index.html
<!doctype html>
<html>
<head>
<title>Wallpapers</title>
<style type="text/css">
body {
background-color: black;
margin: 0;
padding: 0;
}
View main.rs
// Welcome to hell!
pub struct BitReader<T: Shr<usize> + BitAnd + PartialEq + From<u8> + Copy> {
value: T,
bits_remaining: usize
}
impl<T: Shr<usize> + BitAnd + PartialEq + From<u8> + Copy> BitReader<T>
where <T as BitAnd>::Output: PartialEq<T>,
T: From<<T as Shr<usize>>::Output> {
View strip_water.py
"""
Strip watermarks from some photos.
Expects a directory 'pairs' with watermarked and
unwatermarked photos. Watermarked photos have a _w suffix
in their filename. All names end with '.JPG'.
Expects another directory, 'remove_watermarks', with an
arbitrary set of photos. These photos are stripped of all
watermarks that were present in the training pairs.
View main.py
"""
Terminates on macOS but not Linux.
"""
import socket
from threading import Thread
import time
def main():
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
View index.go
package main
import (
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"strconv"
"strings"
View imagenet.go
// Find miniImageNet images in the original dataset.
package main
import (
"fmt"
"image"
"image/jpeg"
"io"
"log"
View main.go
// Solves this problem: http://1mage.us/1339.
package main
import (
"fmt"
"math"
"math/rand"
"sort"
View main.go
// Solves this problem: http://1mage.us/1339.
package main
import (
"fmt"
"math"
"math/rand"
"sort"