In [1]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
In [2]:
# Import stats
FILE = 'cleaned_stats.csv'
# JSON = '../stats.json'
JSON = '../stats50.json'
In [3]:
#df = pd.read_csv(FILE)
df = pd.read_json(JSON)
In [4]:
del df['board']
df.head()
Out[4]:
In [5]:
df.groupby('heuristic').describe(include=[np.number])
Out[5]:
In [38]:
dn = df[np.isfinite(df['steps'])]
dn.groupby('heuristic').describe(include=[np.number])
Out[38]:
In [ ]:
In [ ]:
In [7]:
sns.factorplot(x='dimension', y='steps', data=df, hue='rand_degree', col='heuristic', size=7)
Out[7]:
In [8]:
sns.factorplot(x='dimension', y='time', data=df, hue='rand_degree', col='heuristic', size=7)
Out[8]:
In [11]:
g = sns.FacetGrid(data=df, row='dimension', col='heuristic', hue='rand_degree', sharex=True, sharey=True, aspect=2, size=7)
g =(g.map(sns.pointplot, "time", "steps").add_legend())
In [18]:
sns.stripplot( x="dimension", y="steps", data=df, jitter=True,hue="rand_degree", size=4);
In [19]:
sns.stripplot(x="rand_degree", y="time", data=df, jitter=True, hue="dimension", size=4);
In [20]:
sns.stripplot(x="dimension", y="steps", data=df, jitter=True, hue="rand_degree", size=4);
In [21]:
sns.stripplot(x="dimension", y="time", data=df, jitter=True, hue="rand_degree", size=4);
In [ ]:
sns.swarmplot(x="dimension", y="steps", data=df, hue="rand_degree");
In [ ]:
sns.swarmplot(x="dimension", y="time", data=df, hue="rand_degree");
In [ ]:
sns.swarmplot(x="rand_degree", y="steps", data=df, hue="dimension");
In [ ]:
sns.swarmplot(x="rand_degree", y="time", data=df, hue="dimension");
In [39]:
sns.boxplot(x="rand_degree", y="steps", data=df, hue="dimension");
In [ ]:
sns.boxplot(x="rand_degree", y="time", data=df, hue="dimension");
In [ ]:
sns.boxplot(x="dimension", y="steps", data=df, hue="rand_degree");
In [ ]:
sns.boxplot(x="dimension", y="time", data=df, hue="rand_degree");
In [24]:
sns.lmplot(x="steps", y="time", hue="dimension", col="heuristic", row='rand_degree', data=df)
Out[24]:
In [31]:
sns.lmplot(x="steps", y="time", hue="rand_degree", col="heuristic", row='dimension', data=df)
Out[31]:
In [25]:
sns.lmplot(x="steps", y="time", row="dimension", col="heuristic", hue="rand_degree",data=df)
Out[25]:
In [ ]:
sns.lmplot(x="steps", y="time", hue="dimension", col="heuristic", row="rand_degree", data=df)
In [32]:
sns.distplot(df['time'], bins=3)
Out[32]:
In [33]:
sns.lmplot(y="time", x="steps", col="dimension", row="rand_degree", data=df)
Out[33]:
In [36]:
sns.lmplot(y="steps", x="dimension", row="dimension", col="heuristic",hue="rand_degree", data=df)
Out[36]:
In [37]:
sns.lmplot(y="time", x="dimension", row="dimension", col="heuristic",hue="rand_degree", data=df)
Out[37]:
In [35]:
sns.lmplot(y="steps", x="dimension", hue="dimension", row="rand_degree", col="heuristic", data=df, x_jitter=.1)
Out[35]:
In [ ]: