In [1]:
import research as r
import scipy
import pandas
In [5]:
import research as r
import scipy
import pandas
def fitness_plots(path, treatment):
D = r.load_files(r.find_files(path, treatment+"_.*/fitness.dat"))
figure()
for i,g in D.groupby('trial'):
plot(g['update'], g['mean_fitness'])
ylabel('Mean fitness')
xlabel('Update')
figure()
r.quick_ciplot('update','mean_fitness', D)
ylabel('Mean fitness')
xlabel('Update')
final = D[D['update']==D['update'].max()]
print "\nDominant fitness:"
print final.ix[final['max_fitness'].idxmax()]
return D
In [8]:
D = fitness_plots('/Users/dk/research/var/rna/002-lags','ta.')
In [6]:
D = fitness_plots('/Users/dk/research/var/rna/001-baseline','ta.')
These results are for information-based fitness...
In [7]:
D = fitness_plots('/Users/dk/research/var/rna/001-baseline','tb.')
In [ ]: