You need to have Xcode installed to proceed.
xcode-select --install
sudo xcodebuild -license accept
You need to have Xcode installed to proceed.
xcode-select --install
sudo xcodebuild -license accept
To remove a submodule you need to:
from __future__ import print_function | |
import multiprocessing | |
import ctypes | |
import numpy as np | |
def shared_array(shape): | |
""" | |
Form a shared memory numpy array. | |
import argparse | |
import psutil | |
import tensorflow as tf | |
from typing import Dict, Any, Callable, Tuple | |
## Data Input Function | |
def data_input_fn(data_param, | |
batch_size:int=None, | |
shuffle=False) -> Callable[[], Tuple]: | |
"""Return the input function to get the test data. |
#!/usr/bin/env python3 | |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) |
# Use an official centos7 image | |
FROM centos:7 | |
RUN localedef -i fr_FR -c -f UTF-8 -A /usr/share/locale/locale.alias fr_FR.UTF-8 | |
ENV LANG fr_FR.utf8 | |
# gcc because we need regex and pyldap | |
# openldap-devel because we need pyldap | |
RUN yum update -y \ | |
&& yum install -y https://centos7.iuscommunity.org/ius-release.rpm \ |
import numpy as np | |
import tensorflow as tf | |
__author__ = "Sangwoong Yoon" | |
def np_to_tfrecords(X, Y, file_path_prefix, verbose=True): | |
""" | |
Converts a Numpy array (or two Numpy arrays) into a tfrecord file. | |
For supervised learning, feed training inputs to X and training labels to Y. | |
For unsupervised learning, only feed training inputs to X, and feed None to Y. |
""" | |
Helper module for displaying ROOT canvases in ipython notebooks | |
Usage example: | |
# Save this file as rootnotes.py to your working directory. | |
import rootnotes | |
c1 = rootnotes.default_canvas() | |
fun1 = TF1( 'fun1', 'abs(sin(x)/x)', 0, 10) | |
c1.SetGridx() |
#!/usr/bin/env python | |
# Set up ROOT and RootCore | |
import ROOT | |
ROOT.gROOT.Macro('$ROOTCOREDIR/scripts/load_packages.C') | |
# Initialize the xAOD infrastructure | |
ROOT.xAOD.Init() | |
# Set up the input files (PDSF) |