In [1]:
%matplotlib inline

import numpy as np
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
import seaborn as sns
sns.set(style="whitegrid", color_codes=True)


/Users/felixgonda/ipythonenv/lib/python2.7/site-packages/matplotlib/__init__.py:872: UserWarning: axes.color_cycle is deprecated and replaced with axes.prop_cycle; please use the latter.
  warnings.warn(self.msg_depr % (key, alt_key))

In [18]:
titanic = sns.load_dataset("titanic")
print type(titanic)
titanic.head()


<class 'pandas.core.frame.DataFrame'>
Out[18]:
survived pclass sex age sibsp parch fare embarked class who adult_male deck embark_town alive alone
0 0 3 male 22 1 0 7.2500 S Third man True NaN Southampton no False
1 1 1 female 38 1 0 71.2833 C First woman False C Cherbourg yes False
2 1 3 female 26 0 0 7.9250 S Third woman False NaN Southampton yes True
3 1 1 female 35 1 0 53.1000 S First woman False C Southampton yes False
4 0 3 male 35 0 0 8.0500 S Third man True NaN Southampton no True

In [2]:
df=pd.read_csv('prob1.seg', sep=':')

In [ ]:


In [37]:
df=pd.read_csv('results.txt', sep=':')
passes = [(i+1) for i in df.index]
df.insert(0, 'image', passes)

In [38]:
df.head()


Out[38]:
image Test Validation Membrane PixelError VariationInfo
0 1 /home/fgonda/icon/data/reference/images/test/t... /home/fgonda/icon/data/reference/labels/test/t... /home/fgonda/icon/data/reference/labels/membra... 0.374572 1.250404
1 2 /home/fgonda/icon/data/reference/images/test/a... /home/fgonda/icon/data/reference/labels/test/a... /home/fgonda/icon/data/reference/labels/membra... 0.355991 1.727361
2 3 /home/fgonda/icon/data/reference/images/test/a... /home/fgonda/icon/data/reference/labels/test/a... /home/fgonda/icon/data/reference/labels/membra... 0.402710 2.355627
3 4 /home/fgonda/icon/data/reference/images/test/t... /home/fgonda/icon/data/reference/labels/test/t... /home/fgonda/icon/data/reference/labels/membra... 0.373307 1.162565
4 5 /home/fgonda/icon/data/reference/images/test/t... /home/fgonda/icon/data/reference/labels/test/t... /home/fgonda/icon/data/reference/labels/membra... 0.372207 0.858294

In [27]:
#df.index

In [ ]:


In [39]:
sns.pointplot(x="image", y="VariationInfo", data=df,
              markers=["o"], linestyles=["-"]);



In [41]:
sns.pointplot(x="image", y="PixelError", data=df,
              markers=["o"], linestyles=["-"]);