Tensorflow: v0.11.0rc2 OS: CENTOS 6.8 (No root access)
- The
tensorboardSLURM.shcan be run with the following command to start a tensorboard server on a SLURM cluster:
sbatch --array=0-0 tensorboardSLURM.sh
| #!/usr/bin/env python | |
| """ | |
| An iterative implementation of depth-first search from: | |
| "Python Algorithms: Mastering Basic Algorithms in the Python Language" | |
| by Magnus Lie Hetland | |
| ISBN: 9781484200551 |
| from queue import Queue, PriorityQueue | |
| def bfs(graph, start, end): | |
| """ | |
| Compute DFS(Depth First Search) for a graph | |
| :param graph: The given graph | |
| :param start: Node to start BFS | |
| :param end: Goal-node | |
| """ |
| """ | |
| Example: | |
| # All locations; also locations FROM which we want to find nearest neighbors | |
| locations = pd.DataFrame({"LOCATION_NAME": ["Chicago, IL", "New York, NY", "San Fransisco, CA"], | |
| "LATITUDE": [1, 2, 3], | |
| "LONGITUDE": [1, 2, 3], | |
| "ID": [1, 2, 3]}) | |
| locations = locations.apply(lambda x: Location(location_name=x['LOCATION_NAME'], | |
| latitude=x['LATITUDE'], | |
| longitude=x['LONGITUDE'], |
| Step1: Download MySQL Community Server x.x.x TAR Archive and untar it in user home folder | |
| Step2: Create a my.cnf file in user home directroy | |
| [server] | |
| user=username | |
| basedir=/home/username/mysql | |
| datadir=/home/username/sql_data | |
| socket=/home/username/socket | |
| port=3666 |