Skip to content

Commit

Permalink
iPython Notebook for performing analysis of the results
Browse files Browse the repository at this point in the history
  • Loading branch information
vramdhanie committed Sep 24, 2015
1 parent ed16b96 commit 4c409e7
Showing 1 changed file with 136 additions and 0 deletions.
136 changes: 136 additions & 0 deletions analysis.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"import numpy as mp\n",
"import pandas as pd\n",
"from bokeh.charts import TimeSeries, output_file, show\n"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/html": [
"<div style=\"max-height:1000px;max-width:1500px;overflow:auto;\">\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Temperature</th>\n",
" <th>Cost</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>100</td>\n",
" <td>123.299</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>100</td>\n",
" <td>123.394</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>100</td>\n",
" <td>127.153</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>100</td>\n",
" <td>128.125</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>100</td>\n",
" <td>128.407</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Temperature Cost\n",
"0 100 123.299\n",
"1 100 123.394\n",
"2 100 127.153\n",
"3 100 128.125\n",
"4 100 128.407"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df = pd.read_csv('result_0_1.txt', header=None, names=['Temperature', 'Cost'])\n",
"df.head()"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"output_file(\"report.html\")\n",
"\n",
"data = dict(Temp = df['Temperature'], Cost=df['Cost'])\n",
"\n",
"# create a new plot (with a title) using figure\n",
"p = figure(plot_width=800, plot_height=400, title=\"SA Progression\")\n",
"\n",
"# add a line renderer\n",
"p.line(df['Temperature'][::-1], df['Cost'], line_width=2)\n",
"\n",
"show(p) # show the results\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10"
}
},
"nbformat": 4,
"nbformat_minor": 0
}

0 comments on commit 4c409e7

Please sign in to comment.