Skip to content

Instantly share code, notes, and snippets.

View manuel-delverme's full-sized avatar
😀

Manuel manuel-delverme

😀
View GitHub Profile
/usr/bin/python3.5 /home/awok/Documents/sapienza/s1/nlp/hw2/src/homework2.py model ../ ../resources
Using Theano backend.
WARNING (theano.sandbox.cuda): The cuda backend is deprecated and will be removed in the next release (v0.10). Please switch to the gpuarray backend. You can get more information about how to switch at this URL:
https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29
ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check your nvcc installation and try again.
model_output_path model
homework_dir: ../
model output: model
/usr/bin/python3.5 /home/awok/Documents/sapienza/s1/nlp/hw2/src/homework2.py model ../ ../resources
Using Theano backend.
WARNING (theano.sandbox.cuda): The cuda backend is deprecated and will be removed in the next release (v0.10). Please switch to the gpuarray backend. You can get more information about how to switch at this URL:
https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29
ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check your nvcc installation and try again.
model_output_path model
homework_dir: ../
model output: model
"use strict";
var canvas;
var gl;
var numVertices = 36;
var texSize = 256;
var numChecks = 8;
// cube definition
attribute vec4 vCubePosition;
attribute vec4 vCubeColor;
attribute vec3 vFaceNormal;
// color WHAT is this?
varying vec4 fColor;
// textures
import requests
import json
from fireplace.utils import random_draft
from fireplace import cards
from hearthstone.enums import CardClass
from hearthstone import cardxml
def classify(y, x):
for klass_name in ["ROGUE", "MAGE", "WARRIOR", "HUNTER", "PRIEST", "PALADIN", "WARLOCK", "SHAMAN", "DRUID"]:
if klass_name.lower() in y.lower():
from pprint import pprint
import hdbscan as hdbscan
import numpy as np
import matplotlib.pyplot as plt
# import scipy.cluster.hierarchy as hcluster
from sklearn.manifold import TSNE
from sklearn.decomposition import PCA
import sklearn.metrics.pairwise
import numpy as np
import matplotlib.pyplot as plt
from adjustText import adjust_text
import json
notes = []
together = [(0, 1.0, 0.4), (25, 1.0127692669427917, 0.41), (50, 1.016404709797609, 0.41), (75, 1.1043426359673716, 0.42), (100, 1.1610446924342996, 0.44), (125, 1.1685687930691457, 0.43), (150, 1.3486407784550272, 0.45), (250, 1.4013999168008104, 0.45)]
embed = [(y,y) for (x,y,z) in together]
embed += [(y*1.1,y) for (x,y,z) in together]
embed += [(y,y*1.1) for (x,y,z) in together]
import numpy as np
import matplotlib.pyplot as plt
import scipy.cluster.hierarchy as hcluster
from sklearn.manifold import TSNE
import collections
import random
import fireplace.utils
from fireplace import cards
#!/usr/bin/env python
from pick import pick
urls = [ '__'*i for i in range(1000)]
names = [ '-_^'*i for i in range(1000)]
title = 'scroll down to crash'
style, _ = pick(names, title)
print "not happening"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 100
struct Names
{
char name[20];
char surname[20];