Skip to content

Instantly share code, notes, and snippets.

View valefranz's full-sized avatar

Valentina Franzoni valefranz

View GitHub Profile
@valefranz
valefranz / kmeans.py
Created November 24, 2015 12:36 — forked from dave-andersen/kmeans.py
k-means in Tensorflow
import tensorflow as tf
import numpy as np
import time
N=10000
K=4
MAX_ITERS = 1000
start = time.time()
@valefranz
valefranz / Bibliography_test.adoc
Last active October 19, 2018 10:23
Neo4j Example of a bibliographic network based on DBLP data
@valefranz
valefranz / Axilum
Last active October 28, 2015 11:30
Neo4j example using open data about immigration flows
This example uses open data about immigration flows (October 2015) from the UNHCR Population Statistics Database, with a little preprocesssing.
This example can be run here: http://graphgist.neo4j.com/#!/gists/edfbfa639263106c6b61
If you use the code or images, please cite: Valentina Franzoni, https://gist.github.com/valefranz/edfbfa639263106c6b61
//data from http://popstats.unhcr.org/ 14 october 2015
//Country,Origin,Year,Month,Value
[source,cypher]
----
LOAD CSV WITH HEADERS FROM 'https://gist.githubusercontent.com/valefranz/edfbfa639263106c6b61/raw/4935abcdecdf8b38f26a4e75ef9813d4e97053d5/immigration2015.csv' as line FIELDTERMINATOR ','
@valefranz
valefranz / ScissorsPaperSpock.adoc
Last active October 28, 2015 11:27
scissors paper.... Spock! :) Neo4j example