Instructions are based on this link as base source. I have given modified instructions for steps which didn't work for me.
Installing dependencies
tensorflow
sudo apt-get install pkg-config zip g++ zlib1g-dev unzip swig git
| /uploadCompleteScript: | |
| post: | |
| tags: | |
| - MNIST | |
| description: >- | |
| Allows user to upload the [MNIST | |
| dataset](https://drive.google.com/open?id=0B-HwpreJA3WzbnZodkJZVWNfUTg) | |
| and get a trained model based on the parameters specified. Description | |
| about the dataset can be found | |
| [here](http://yann.lecun.com/exdb/mnist/). |
| #Set the base image to Ubuntu | |
| FROM rashmitiwari1990/uf:nvidia_caffe_s3lab_v1 | |
| #File Author / Mainetainer | |
| MAINTAINER Maintainer S3LabUF | |
| # Update the sources list | |
| RUN apt-get update | |
| #Install Python modules needed |
| ''' | |
| Distributed Tensorflow example of using data parallelism and share model parameters. | |
| Trains a simple sigmoid neural network on mnist for 20 epochs on three machines using one parameter server. | |
| Change the hardcoded host urls below with your own hosts. | |
| Run like this: | |
| pc-01$ python example.py --job-name="ps" --task_index=0 | |
| pc-02$ python example.py --job-name="worker" --task_index=0 | |
| pc-03$ python example.py --job-name="worker" --task_index=1 |
Instructions are based on this link as base source. I have given modified instructions for steps which didn't work for me.
Installing dependencies
tensorflow
sudo apt-get install pkg-config zip g++ zlib1g-dev unzip swig git
| b0="$(upower -i /org/freedesktop/UPower/devices/battery_BAT0| grep -E "percentage" | awk '{print $2}' | sed 's/.$//')" | |
| b1="$(upower -i /org/freedesktop/UPower/devices/battery_BAT1| grep -E "percentage" | awk '{print $2}' | sed 's/.$//')" | |
| d1="$(date)" | |
| d0="$(date | awk '{print $4}')" | |
| echo "$b0, $b1, $d0, $d1" |
| import urllib2 | |
| def getTimings(stopName,stopUrl,waitUrl): | |
| pageHtml = urllib2.urlopen(stopUrl).read() | |
| startPos = pageHtml.find(waitUrl)+len(waitUrl) | |
| endPos = pageHtml.find('<ab',startPos) | |
| print(stopName,pageHtml[startPos:endPos]), | |
| getTimings('Ra','http://ufl.transloc.com/t/stops/4093246','<td class="wait_time time_1" width="110px"><a href="/t/routes/4001170" title="View all of Butler Plaza">') | |
| #getTimings('Re','http://ufl.transloc.com/t/stops/4091138','<td class="wait_time time_1" width="110px"><a href="/t/routes/4001170" title="View all of Butler Plaza">') |
| #https://stat.ethz.ch/R-manual/R-devel/library/cluster/html/silhouette.html | |
| # install.packages("cluster") # for silhouette | |
| # install.packages("Rmisc") | |
| library(ggplot2) | |
| library(cluster) | |
| library(Rmisc) | |
| #library(cluster) | |
| library(fpc) | |
| library(rgl) |