The following debugging information was generated by Atom Beautify
on Sat Jun 11 2016 12:58:56 GMT+0200 (W. Europe Daylight Time)
.
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 networkx.readwrite import json_graph | |
import json | |
# Return data in adjacency format that is suitable for | |
# JSON serialization and use in Javascript documents. | |
# more @https://goo.gl/QoRlbL | |
data = json_graph.adjacency_data(G) | |
with codecs.open('matrix.json', 'w', encoding='utf-8') as f: | |
json.dump(data, f) |
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
{ | |
"directed": false, | |
"graph": [], | |
"nodes": [{ | |
"id": "Christian Wolff (philosopher)" | |
}, { | |
"id": "Martin Heidegger" | |
}, { | |
"id": "Lucretius" | |
}, { |
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
# download the file @ https://www.dropbox.com/s/urqmc4jgt66hbef/notMNIST.pickle?dl=0 | |
pickle_file = 'notMNIST.pickle' | |
from time import strftime | |
from math import sqrt | |
from __future__ import print_function | |
import numpy as np | |
import tensorflow as tf | |
from six.moves import cPickle as pickle |
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
import json | |
import re | |
import urllib2 | |
path_to_save = '' # create a directory and write the name of directory here | |
data_file = urllib2.urlopen('https://github.com/NREL/EnergyPlus/raw/develop/weather/master.geojson') | |
data = json.load(data_file) | |
# or you can download master.geojson and run the below code instead of downloading from the net | |
# with open('master.geojson') as data_file: | |
# data = json.load(data_file) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.