forked from montrealrobotics/La-MAML
-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.py
19 lines (13 loc) · 5.6 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import matplotlib.pyplot as plt
ls = [[0.2080, [0.2000, 0.1920, 0.2000, 0.2000, 0.2000]], [0.2000, [0.1800, 0.2000, 0.2000, 0.2480, 0.2000]], [0.2000, [0.2000, 0.2160, 0.2000, 0.2000, 0.1920]], [0.5120, [0.4600, 0.4120, 0.4520, 0.3760, 0.3320]], [0.5520, [0.3800, 0.4840, 0.4360, 0.2080, 0.3360]], [0.6360, [0.5200, 0.5000, 0.4440, 0.4760, 0.3800]], [0.6320, [0.5760, 0.4800, 0.2440, 0.2160, 0.2720]], [0.6200, [0.6240, 0.5240, 0.2240, 0.2000, 0.2040]], [0.6600, [0.6520, 0.2120, 0.3480, 0.2000, 0.2120]], [0.6320, [0.5640, 0.6000, 0.3760, 0.4560, 0.4280]], [0.4340, [0.4120, 0.3400, 0.1920, 0.1980, 0.1660]], [0.6020, [0.3300, 0.3360, 0.3340, 0.3320, 0.3340]], [0.6400, [0.3260, 0.3300, 0.3260, 0.3080, 0.2620]], [0.6420, [0.3360, 0.4020, 0.3900, 0.3840, 0.3880]], [0.6540, [0.3240, 0.3020, 0.2760, 0.2460, 0.2460]], [0.6580, [0.4040, 0.4000, 0.4000, 0.3940, 0.4180]], [0.6500, [0.3860, 0.3500, 0.3580, 0.4000, 0.3840]], [0.6820, [0.4280, 0.4240, 0.4000, 0.4680, 0.4460]], [0.6620, [0.4660, 0.4720, 0.3900, 0.2920, 0.2880]], [0.6780, [0.4520, 0.4680, 0.4600, 0.4560, 0.4640]], [0.5280, [0.3880, 0.2613, 0.1827, 0.1880, 0.0787]], [0.6493, [0.3320, 0.3413, 0.3307, 0.3280, 0.3333]], [0.6453, [0.3347, 0.3440, 0.3307, 0.3400, 0.3160]], [0.6493, [0.3467, 0.3467, 0.3893, 0.3453, 0.3440]], [0.6720, [0.3867, 0.3773, 0.3467, 0.3693, 0.3893]], [0.6667, [0.3227, 0.2667, 0.2680, 0.1373, 0.1053]], [0.6800, [0.3253, 0.2880, 0.1533, 0.2813, 0.2480]], [0.6733, [0.3293, 0.3253, 0.3253, 0.3213, 0.2960]], [0.6760, [0.3080, 0.1627, 0.2040, 0.2827, 0.2227]], [0.6840, [0.4320, 0.4240, 0.4240, 0.4200, 0.4200]], [0.5650, [0.3160, 0.1730, 0.1070, 0.1280, 0.0830]], [0.6430, [0.3240, 0.3180, 0.3020, 0.3100, 0.3060]], [0.6410, [0.3240, 0.3250, 0.2940, 0.2900, 0.2300]], [0.6510, [0.3300, 0.3170, 0.2910, 0.2620, 0.2570]], [0.6630, [0.3220, 0.3090, 0.3060, 0.2940, 0.2320]], [0.6470, [0.3200, 0.3100, 0.2980, 0.3030, 0.2840]], [0.6460, [0.3020, 0.2770, 0.2760, 0.2680, 0.2520]], [0.6590, [0.3140, 0.3130, 0.3070, 0.3090, 0.2810]], [0.6450, [0.2780, 0.2930, 0.2830, 0.2720, 0.2950]], [0.6510, [0.3010, 0.2960, 0.2960, 0.3060, 0.3140]], [0.5584, [0.2720, 0.1720, 0.1112, 0.1320, 0.1280]], [0.6440, [0.2520, 0.2496, 0.2496, 0.2512, 0.2512]], [0.6376, [0.2368, 0.2024, 0.1808, 0.1248, 0.1880]], [0.6560, [0.2560, 0.2536, 0.2568, 0.2552, 0.2392]], [0.6560, [0.2664, 0.2936, 0.2912, 0.2528, 0.2496]], [0.6576, [0.2680, 0.2616, 0.2616, 0.2616, 0.2600]], [0.6616, [0.2264, 0.2152, 0.2000, 0.1984, 0.1304]], [0.6608, [0.2824, 0.2760, 0.2792, 0.2816, 0.2808]], [0.6520, [0.2552, 0.2312, 0.1376, 0.2064, 0.1736]], [0.6616, [0.2488, 0.2384, 0.2328, 0.2744, 0.2752]]]
# ls = [[0.2080, [0.2320, 0.2000, 0.1920, 0.2000, 0.2000]], [0.2000, [0.2000, 0.1800, 0.2000, 0.2000, 0.2480]], [0.2000, [0.2000, 0.2000, 0.2160, 0.2000, 0.2000]], [0.5120, [0.5040, 0.4600, 0.4120, 0.4520, 0.3760]], [0.5520, [0.5480, 0.3800, 0.4840, 0.4360, 0.2080]], [0.6360, [0.6120, 0.5200, 0.5000, 0.4440, 0.4760]], [0.6320, [0.6280, 0.5760, 0.4800, 0.2440, 0.2160]], [0.6200, [0.6160, 0.6240, 0.5240, 0.2240, 0.2000]], [0.6600, [0.6600, 0.6520, 0.2120, 0.3480, 0.2000]], [0.6320, [0.6440, 0.5640, 0.6000, 0.3760, 0.4560]], [0.4340, [0.4320, 0.4120, 0.3400, 0.1920, 0.1980]], [0.6020, [0.6020, 0.3300, 0.3360, 0.3340, 0.3320]], [0.6400, [0.6300, 0.3260, 0.3300, 0.3260, 0.3080]], [0.6420, [0.6460, 0.3360, 0.4020, 0.3900, 0.3840]], [0.6540, [0.6560, 0.3240, 0.3020, 0.2760, 0.2460]], [0.6580, [0.6620, 0.4040, 0.4000, 0.4000, 0.3940]], [0.6500, [0.6540, 0.3860, 0.3500, 0.3580, 0.4000]], [0.6820, [0.6800, 0.4280, 0.4240, 0.4000, 0.4680]], [0.6620, [0.6620, 0.4660, 0.4720, 0.3900, 0.2920]], [0.6780, [0.6740, 0.4520, 0.4680, 0.4600, 0.4560]], [0.5280, [0.5267, 0.3880, 0.2613, 0.1827, 0.1880]], [0.6493, [0.6427, 0.3320, 0.3413, 0.3307, 0.3280]], [0.6453, [0.6493, 0.3347, 0.3440, 0.3307, 0.3400]], [0.6493, [0.6467, 0.3467, 0.3467, 0.3893, 0.3453]], [0.6720, [0.6760, 0.3867, 0.3773, 0.3467, 0.3693]], [0.6667, [0.6680, 0.3227, 0.2667, 0.2680, 0.1373]], [0.6800, [0.6760, 0.3253, 0.2880, 0.1533, 0.2813]], [0.6733, [0.6787, 0.3293, 0.3253, 0.3253, 0.3213]], [0.6760, [0.6813, 0.3080, 0.1627, 0.2040, 0.2827]], [0.6840, [0.6787, 0.4320, 0.4240, 0.4240, 0.4200]], [0.5650, [0.5730, 0.3160, 0.1730, 0.1070, 0.1280]], [0.6430, [0.6430, 0.3240, 0.3180, 0.3020, 0.3100]], [0.6410, [0.6430, 0.3240, 0.3250, 0.2940, 0.2900]], [0.6510, [0.6580, 0.3300, 0.3170, 0.2910, 0.2620]], [0.6630, [0.6640, 0.3220, 0.3090, 0.3060, 0.2940]], [0.6470, [0.6520, 0.3200, 0.3100, 0.2980, 0.3030]], [0.6460, [0.6490, 0.3020, 0.2770, 0.2760, 0.2680]], [0.6590, [0.6600, 0.3140, 0.3130, 0.3070, 0.3090]], [0.6450, [0.6460, 0.2780, 0.2930, 0.2830, 0.2720]], [0.6510, [0.6510, 0.3010, 0.2960, 0.2960, 0.3060]], [0.5584, [0.5608, 0.2720, 0.1720, 0.1112, 0.1320]], [0.6440, [0.6432, 0.2520, 0.2496, 0.2496, 0.2512]], [0.6376, [0.6360, 0.2368, 0.2024, 0.1808, 0.1248]], [0.6560, [0.6560, 0.2560, 0.2536, 0.2568, 0.2552]], [0.6560, [0.6552, 0.2664, 0.2936, 0.2912, 0.2528]], [0.6576, [0.6600, 0.2680, 0.2616, 0.2616, 0.2616]], [0.6616, [0.6576, 0.2264, 0.2152, 0.2000, 0.1984]], [0.6608, [0.6592, 0.2824, 0.2760, 0.2792, 0.2816]], [0.6520, [0.6520, 0.2552, 0.2312, 0.1376, 0.2064]], [0.6616, [0.6656, 0.2488, 0.2384, 0.2328, 0.2744]]]
print(len(ls))
ls_meta_ras = [x[0] for x in ls]
plt.plot(ls_meta_ras)
plt.scatter([i for i in range(len(ls_meta_ras))], [x[1][0] for x in ls], s=0.5, c='violet')
plt.scatter([i for i in range(len(ls_meta_ras))], [x[1][1] for x in ls], s=0.4, c='indigo')
plt.scatter([i for i in range(len(ls_meta_ras))], [x[1][2] for x in ls], s=0.3, c='yellow')
plt.scatter([i for i in range(len(ls_meta_ras))], [x[1][3] for x in ls], s=0.2, c='red')
# for l in ls:
# plt.plot(l[1])
plt.show()