yum group install 'Development Tools' && yum install perl-core libtemplate-perl zlib-devel
This file contains hidden or 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
| # source: http://forums.fast.ai/t/training-metrics-as-notifications-on-mobile-using-callbacks/17330 | |
| def send_notification(msg_string): | |
| ''' | |
| This function sends message to my mobile using Pushover. | |
| ''' | |
| import requests | |
| from datetime import datetime | |
| url = "https://api.pushover.net/1/messages.json" | |
| data = { |
This file contains hidden or 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
| # source: https://github.com/GoogleCloudPlatform/cloudml-samples/blob/master/census/keras/trainer/model.py | |
| from keras import backend as K | |
| import tensorflow as tf | |
| from tensorflow.python.saved_model import builder as saved_model_builder | |
| from tensorflow.python.saved_model import tag_constants, signature_constants | |
| from tensorflow.python.saved_model.signature_def_utils_impl import predict_signature_def | |
| def to_savedmodel(model, export_path): | |
| """Convert the Keras HDF5 model into TensorFlow SavedModel.""" |
This file contains hidden or 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 collections | |
| def flatten(d, parent_key='', sep='_'): | |
| items = [] | |
| for k, v in d.items(): | |
| new_key = parent_key + sep + k if parent_key else k | |
| if isinstance(v, collections.MutableMapping): | |
| items.extend(flatten(v, new_key, sep=sep).items()) | |
| else: | |
| items.append((new_key, v)) |
Largely based on the Tensorflow 1.6 gist, this should hopefully simplify things a bit. Mixing homebrew python2/python3 with pip ends up being a mess, so here's an approach to uses the built-in python27.
- NVIDIA Web-Drivers 378.05.05 for 10.12.6
- CUDA 9.0 Toolkit
- cuDNN 7.0.5 (latest release for mac os)
- Python 3.6
This file contains hidden or 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
| #################################### | |
| # BASIC REQUIREMENTS | |
| # http://graphite.wikidot.com/installation | |
| # http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
| # Last tested & updated 10/13/2011 | |
| #################################### | |
| cd | |
| sudo apt-get update | |
| sudo apt-get upgrade |
This file contains hidden or 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
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: supervisord | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Example initscript | |
| # Description: This file should be used to construct scripts to be | |
| # placed in /etc/init.d. |