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
python train.py 0 mnist deep_stable /global/scratch/tsmidt/harmonicConvolutions/mnist |
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 eggs from here (you will have to log in to enthougt) | |
https://store.enthought.com/repo/.iron/eggs/ | |
Change to download directory in command prompt. | |
Put this file also in that directory | |
Type: | |
ipy IronPython_numpy_scipy.py --install |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 tensorflow as tf | |
import numpy as np | |
# This was useful | |
# see http://stackoverflow.com/questions/33849617/how-do-i-convert-a-directory-of-jpeg-images-to-tfrecords-file-in-tensorflow | |
# Example numpy file. | |
files = ['CH_7381_8380_1478761500.9.npz'] | |
def _int64list_feature(value): |
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
# Example for | |
# https://stackoverflow.com/questions/53507426/why-is-ipad-not-able-to-render-offline-plotly-plots-but-iphone-can | |
# This code is intended to be run in a jupyter notebook | |
import plotly | |
import plotly.plotly as py | |
import plotly.graph_objs as go | |
import plotly.offline | |
plotly.offline.init_notebook_mode(connected=False) |
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 numpy as np | |
from pymatgen.core.structure import * | |
from pymatgen.core.lattice import * | |
# For PubChem 3D data, only the following atoms are included: | |
# H, C, N, O, F, Si, P, S, Cl, Br, and I | |
def structure_to_discrete(s,pixel_length=0.2,element_index=None,empty=0): | |
if element_index == None: | |
element_index = ["H","C","N","O","F","Si","P","S","Cl","Br","I"] |
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
""" | |
This script can be used to determine the sensitivity of a crystal's | |
spacegroup to the symmetry precision. | |
""" | |
from pymatgen.core.structure import Structure | |
from pymatgen.symmetry.groups import SpaceGroup | |
from pymatgen.symmetry.analyzer import SpacegroupAnalyzer | |
from math import * | |
from numpy import isclose |
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
#!/usr/bin/env python | |
# USAGE | |
# conv_calc.py width filter_size padding stride | |
import sys | |
args = list(map(int, sys.argv[1:])) | |
if len(args) == 0: | |
print("Usage: conv_calc.py width filter_size padding stride") |
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 numpy as np | |
import re | |
import plotly | |
plotly.offline.init_notebook_mode(connected=False) | |
import plotly.figure_factory as FF | |
import plotly.graph_objs as go | |
# Based on https://scicomp.stackexchange.com/questions/11528/wrl-and-vrml-to-matplotlib-numpy | |
holder = [] |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.