forked from MorphologicalComputations/SpringMassNetworks
-
Notifications
You must be signed in to change notification settings - Fork 2
/
analyse.py
executable file
·50 lines (39 loc) · 1.1 KB
/
analyse.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#! /usr/bin/env python2
import os
from roboTraining.analysis import *
if __name__ == "__main__":
# Create Analysis object and load results folder
an = Analysis(root=".", folder="CMA4")#cl/Machine-7/20161123_212706/")
an.load()
# General plots
# for u in ["score", "distance", "power"]:
# an.plot_all_raws(unit=u)
# an.plot_all_raws_av(unit=u)
#an.plot_all_gens()
# an.plot_all_conv_errs()
# an.plot_all_state_spaces()
# an.plot_all_params()
# Simulate best individu
# score, index1, index2 = an.get_best_ind()
# for a in [0.01]:#, 1, 0.001, 0.0001]:#, 0.001, 0.01, 0.1, 1]:
# an.simulate_ind(index1, index2, simTime=50, movie=False, simNoise=0.01, \
# alpha=a, rc=True, openPhase=0.3, beta=0.95, trainingPhase=0.8)
# Simtime analysis
# an.simtime()
# Pareto Anaysis
# an.pareto()
#an.pareto_dist()
#an.pareto_power()
# Spring Mass values analysis
# an.km()
# Omega value analysis
#an.freq()
#an.freq_av()
# Nodes number value analysis
#an.nodes()
an.nodes_CL()
#an.plot_LC()
# Noise analysis
#an.plot_all_noise_sims()
#an.plot_all_noise_params()
#an.plot_all_noise_control()