In [31]:
import sys
import numpy as np
import time
from explauto.utils import rand_bounds
sys.path.append('../')

from cogsci2017.environment.arm_diva_env import CogSci2017Environment
%matplotlib inline
import matplotlib.pyplot as plt

env_audio = CogSci2017Environment(audio=True)
env = CogSci2017Environment()


# Define Vowels and triplets
v_o = list(np.log2([500, 900]))
v_y = list(np.log2([300, 1700]))
v_u = list(np.log2([300, 800]))
v_e = list(np.log2([400, 2200]))
v_i = list(np.log2([300, 2300]))
#v_a = list(np.log2([800, 1300]))

vowels = dict(o=v_o, y=v_y, u=v_u, e=v_e, i=v_i)
                     
def check_sounds(s_traj, tol=0.25):    
    if s_traj is None:
        return "NNN"
    s1 = s_traj[0]
    s2 = s_traj[24]
    s3 = s_traj[-1]
    
    v1 = "N"
    v2 = "N"
    v3 = "N"
    
    for v in vowels.keys():
        if abs(s1[0]-vowels[v][0]) < tol and abs(s1[1]-vowels[v][1]) < tol:
            v1 = v
        if abs(s2[0]-vowels[v][0]) < tol and abs(s2[1]-vowels[v][1]) < tol:
            v2 = v
        if abs(s3[0]-vowels[v][0]) < tol and abs(s3[1]-vowels[v][1]) < tol:
            v3 = v
    
    sound = v1 + v2 + v3
    
    return sound

In [32]:
human_sounds = ["uyi", "ieu", "euo", "oiy", "oey", "uie"]

def compute_s_sound(sound):
    s1 = vowels[sound[0]]
    s2 = [(vowels[sound[0]][0] + vowels[sound[1]][0]) / 2., (vowels[sound[0]][1] + vowels[sound[1]][1]) / 2.]
    s3 = vowels[sound[1]]
    s4 = [(vowels[sound[1]][0] + vowels[sound[2]][0]) / 2., (vowels[sound[1]][1] + vowels[sound[2]][1]) / 2.]
    s5 = vowels[sound[2]]
    rdm = 0.05 * (2.*np.random.random((1,10))[0] - 1.)
    return list(rdm + np.array([f[0] for f in [s1, s2, s3, s4, s5]] + [f[1] for f in [s1, s2, s3, s4, s5]]))


human_sounds_traj = dict()
human_sounds_traj_std = dict()
for hs in human_sounds:
    human_sounds_traj[hs] = compute_s_sound(hs)
    human_sounds_traj_std[hs] = human_sounds_traj[hs]
    human_sounds_traj_std[hs] = [d - 8.5 for d in human_sounds_traj[hs][:5]] + [d - 10.25 for d in human_sounds_traj[hs][5:]]    
    plt.plot(- np.array(human_sounds_traj[hs][5:]), -np.array(human_sounds_traj[hs][:5]), lw=2)
    
plt.xlim([-np.log2([3500.]), -np.log2([500.])])
plt.ylim([-np.log2([1200.]), -np.log2([200.])])


Out[32]:
(array([-10.22881869]), array([-7.64385619]))

In [33]:
from cogsci2017.learning.supervisor import Supervisor



def train(n_motor_babbling=100, n_goal_babbling=900, n_imitation_each=500, explo_noise=0.1):
    
    m_list = []
    sound_list = []
    sound_dict = {}
    vowels_dict = {}
    iteration = 0

    config = dict(m_mins=env.conf.m_mins,
                 m_maxs=env.conf.m_maxs,
                 s_mins=env.conf.s_mins,
                 s_maxs=env.conf.s_maxs)

    agent = Supervisor(config, explo_noise=explo_noise)
    

    for i in range(n_motor_babbling + n_goal_babbling):
        if i < n_motor_babbling:
            m = agent.motor_babbling(audio=True)
        else:
            context = env.get_current_context()
            m = agent.produce(context)
            
        s = env.update(m)
        agent.perceive(s)

        m_list.append(m)
        s_traj = env.diva_traj
        if s_traj is not None:

            sound = check_sounds(s_traj)
            sound_list.append(sound)
            if sound_dict.has_key(sound):
                sound_dict[sound] += [iteration]
            else:
                sound_dict[sound] = [iteration]
            for v in vowels:
                if v in sound:
                    if vowels_dict.has_key(v):
                        vowels_dict[v] += [iteration]
                    else:
                        vowels_dict[v] = [iteration]
            if i < n_motor_babbling:
                plt.plot([-f[1] for f in s_traj], [-f[0] for f in s_traj], color="r", alpha=0.2)
            else:
                plt.plot([-f[1] for f in s_traj], [-f[0] for f in s_traj], color="g", alpha=0.2)
        iteration += 1
           
    results_errors = {}
    results_sounds = {}
    results_it = {}

    for hs in human_sounds:
        results_errors[hs] = []
        results_sounds[hs] = []
        results_it[hs] = -1 

    for hs in human_sounds:
        #IMITATE
        #best_sound_list, error_list = train_imitation(agent, hs, iterations=n_imitation_each, explo_noise=explo_noise)

        m = agent.modules["mod13"].inverse(np.array(env.get_current_context() + human_sounds_traj_std[hs]), explore=False) 
        s = env.update([0.]*21 + list(m))
        s_traj = env.diva_traj
        best_error = np.linalg.norm(np.array(human_sounds_traj[hs]) - np.array([f[0] for f in s_traj[[0, 12, 24, 37, 49]]] + [f[1] for f in s_traj[[0, 12, 24, 37, 49]]]))
        best_sound = check_sounds(s_traj)
        #print "best error", best_error
        #print "s_traj", s_traj, human_sounds_traj[hs]
        error_list = []
        best_sound_list = []

        for i in range(n_imitation_each):
            #print env.get_current_context()
            m = agent.modules["mod13"].inverse(np.array(env.get_current_context() + human_sounds_traj_std[hs]), explore=True) 
            agent.m = [0.]*21 + list(m)
            s = env.update(agent.m)
            agent.perceive(s)
            s_traj = env.diva_traj


            m_list.append(m)
            if s_traj is not None:

                sound = check_sounds(s_traj)
                sound_list.append(sound)
                if sound_dict.has_key(sound):
                    sound_dict[sound] += [iteration]
                else:
                    sound_dict[sound] = [iteration]
                for v in vowels:
                    if v in sound:
                        if vowels_dict.has_key(v):
                            vowels_dict[v] += [iteration]
                        else:
                            vowels_dict[v] = [iteration]
            # Error
            error = np.linalg.norm(np.array(human_sounds_traj[hs]) - np.array([f[0] for f in s_traj[[0, 12, 24, 37, 49]]] + [f[1] for f in s_traj[[0, 12, 24, 37, 49]]]))

            if error < best_error:
                best_error = error
                best_sound = sound
            error_list += [best_error]
            best_sound_list += [best_sound]
            iteration += 1
        

            #plt.plot(-s_traj[0][1], -s_traj[0][0], "ok", alpha=0.2)
            plt.plot([-f[1] for f in s_traj], [-f[0] for f in s_traj], color="b", alpha=0.2)
        print "end best error for sound", hs, best_error

        # Human Sound
        #plt.plot(- np.array(human_sounds_traj[hs][5:])[0], -np.array(human_sounds_traj[hs][:5][0]), "ok")
        #plt.plot(- np.array(human_sounds_traj[hs][5:]), -np.array(human_sounds_traj[hs][:5]), lw=3)



        #plt.xlim([-np.log2([3500.]), -np.log2([500.])])
        #plt.ylim([-np.log2([1200.]), -np.log2([100.])])
    
        
        
        
        results_sounds[hs] += best_sound_list
        results_errors[hs] += error_list
        try:
            results_it[hs] = results_sounds[hs].index(hs)
        except ValueError:
            results_it[hs] = -1
    
    
    plt.xlim([-np.log2([3500.]), -np.log2([500.])])
    plt.ylim([-np.log2([1200.]), -np.log2([200.])])
    for v in vowels.keys():
        plt.plot(-vowels[v][1], -vowels[v][0], "o")

    print
    for key in sound_dict.keys():
        if not (key[0] == "N" or key[1] == "N" or key[2] == "N"):
            print "Sound:", key, "  Iterations: ", sound_dict[key]
    print
    for v in vowels:
        if vowels_dict.has_key(v):
            print "Vowel [", v, "] played", len(vowels_dict[v]), "times"

    def listen(i):
        print "Playing sound: ", sound_list[i], "of iteration ", i
        m = m_list[i]
        env_audio.diva.update(m[21:])

    def listen_triplets():
        for key in sound_dict.keys():
            if not (key[0] == "N" or key[1] == "N" or key[2] == "N"):
                for i in sound_dict[key]:
                    listen(i)
                    time.sleep(1)
            
                    
    return results_sounds, results_errors, results_it

In [34]:
c1_sounds, c1_errors, c1_it = train(n_motor_babbling=2000, n_goal_babbling=0, n_imitation_each=0, explo_noise=0.1)


end best error for sound uyi 0.682075951921
end best error for sound ieu 0.633249708793
end best error for sound euo 0.73820331604
end best error for sound oiy 0.609436155565
end best error for sound oey 0.608409633207
end best error for sound uie 0.757466733039

Sound: yeo   Iterations:  [483]
Sound: ieo   Iterations:  [1226]
Sound: yyu   Iterations:  [1102]
Sound: yyy   Iterations:  [551, 586, 1270, 1994]
Sound: yye   Iterations:  [365, 1209]
Sound: yyi   Iterations:  [1392, 1653]
Sound: eyy   Iterations:  [596]
Sound: yiy   Iterations:  [1346]
Sound: iyy   Iterations:  [559, 1271, 1492]
Sound: yoo   Iterations:  [624]
Sound: oyy   Iterations:  [880]
Sound: oyi   Iterations:  [23, 1460]
Sound: uyy   Iterations:  [1053]
Sound: oiy   Iterations:  [1681]

Vowel [ i ] played 170 times
Vowel [ e ] played 219 times
Vowel [ u ] played 84 times
Vowel [ y ] played 556 times
Vowel [ o ] played 199 times

In [35]:
c2_sounds, c2_errors, c2_it = train(n_motor_babbling=250, n_goal_babbling=1750, n_imitation_each=0, explo_noise=0.1)


end best error for sound uyi 0.732597155006
end best error for sound ieu 0.910971515514
end best error for sound euo 0.61524897219
end best error for sound oiy 0.678920306363
end best error for sound oey 0.582903828124
end best error for sound uie 0.829317317763

Sound: yee   Iterations:  [1152]
Sound: yey   Iterations:  [1707]
Sound: eee   Iterations:  [98]
Sound: ouo   Iterations:  [1894]
Sound: oue   Iterations:  [737]
Sound: ouy   Iterations:  [220, 1699]
Sound: ouu   Iterations:  [688, 1282, 1943]
Sound: oey   Iterations:  [826]
Sound: euo   Iterations:  [345]
Sound: yuo   Iterations:  [1266, 1483]
Sound: yyu   Iterations:  [1335, 1912]
Sound: yyy   Iterations:  [1264]
Sound: yyo   Iterations:  [800, 870]
Sound: ooo   Iterations:  [1180, 1514]
Sound: oyy   Iterations:  [409, 959, 993, 1075]
Sound: oyu   Iterations:  [731]
Sound: yoy   Iterations:  [774, 873]
Sound: you   Iterations:  [1786]
Sound: ioy   Iterations:  [439]
Sound: uyi   Iterations:  [392]

Vowel [ i ] played 68 times
Vowel [ e ] played 150 times
Vowel [ u ] played 197 times
Vowel [ y ] played 553 times
Vowel [ o ] played 370 times

In [36]:
c3_sounds, c3_errors, c3_it = train(n_motor_babbling=250, n_goal_babbling=250, n_imitation_each=250, explo_noise=0.1)


end best error for sound uyi 0.401421789974
end best error for sound ieu 0.608394057659
end best error for sound euo 0.492207890657
end best error for sound oiy 0.564910936046
end best error for sound oey 0.348981735912
end best error for sound uie 0.332158944908

Sound: ieo   Iterations:  [861, 892, 898, 903, 915, 916, 931, 934, 947, 949, 951, 963, 965, 966, 971, 975, 978, 985, 987, 990, 994]
Sound: uoo   Iterations:  [322]
Sound: eeo   Iterations:  [871, 873, 884, 943, 959, 984, 999]
Sound: uei   Iterations:  [657, 1656, 1758, 1775, 1877, 1879, 1923]
Sound: uee   Iterations:  [648, 1801, 1845]
Sound: uey   Iterations:  [580, 1730]
Sound: oii   Iterations:  [1546, 1574]
Sound: oey   Iterations:  [1536, 1547, 1549, 1579, 1625, 1628, 1646, 1661, 1712, 1731]
Sound: euo   Iterations:  [1085, 1167]
Sound: oei   Iterations:  [1576, 1713, 1733]
Sound: oee   Iterations:  [1599, 1616]
Sound: yeo   Iterations:  [800, 801, 804, 811]
Sound: yyy   Iterations:  [92, 237, 790]
Sound: uie   Iterations:  [1788, 1826, 1830, 1835, 1842, 1846, 1868, 1875, 1946, 1996]
Sound: yyo   Iterations:  [776, 788]
Sound: yio   Iterations:  [810]
Sound: eyo   Iterations:  [755, 870]
Sound: yiy   Iterations:  [242]
Sound: iiy   Iterations:  [31]
Sound: iio   Iterations:  [826, 853, 925, 968]
Sound: iye   Iterations:  [147]
Sound: iyo   Iterations:  [857, 866, 869]
Sound: iyy   Iterations:  [765, 856]
Sound: eio   Iterations:  [885]
Sound: uii   Iterations:  [1918, 1937, 1961, 1984]
Sound: uiy   Iterations:  [1822, 1897, 1939, 1940]
Sound: yoo   Iterations:  [397]
Sound: oyy   Iterations:  [606, 658, 740, 1251, 1278, 1301, 1312, 1322, 1386, 1434, 1491, 1494, 1617, 1671, 1716]
Sound: oyo   Iterations:  [25]
Sound: oyi   Iterations:  [576, 1284, 1305, 1342, 1369, 1464, 1657, 1743]
Sound: oye   Iterations:  [1277, 1359]
Sound: uyy   Iterations:  [516, 536, 549, 557, 565, 601, 671, 695, 703, 706, 747, 1341, 1391, 1451, 1473, 1778, 1779, 1833, 1874, 1894, 1899, 1903, 1912, 1916, 1930, 1934, 1977]
Sound: uye   Iterations:  [546, 598, 612, 741, 748, 1387, 1763, 1776, 1789, 1836, 1854, 1885, 1889, 1904, 1905, 1906, 1945, 1952, 1960, 1967, 1979, 1982, 1994]
Sound: oiy   Iterations:  [1362, 1569, 1626, 1695, 1697]
Sound: uyi   Iterations:  [558, 560, 566, 577, 632, 649, 651, 652, 660, 1283, 1365, 1419, 1443, 1457, 1465, 1608, 1637, 1755, 1760, 1765, 1780, 1807, 1808, 1823, 1838, 1871, 1886, 1924, 1936, 1948, 1954, 1962, 1985]
Sound: eoo   Iterations:  [1173, 1220, 1223]

Vowel [ i ] played 427 times
Vowel [ e ] played 537 times
Vowel [ u ] played 331 times
Vowel [ y ] played 827 times
Vowel [ o ] played 427 times

In [37]:
c3_it


Out[37]:
{'euo': -1, 'ieu': -1, 'oey': 47, 'oiy': -1, 'uie': -1, 'uyi': 60}

In [38]:
c3_sounds, c3_errors, c3_it = train(n_motor_babbling=250, n_goal_babbling=250, n_imitation_each=250, explo_noise=0.05)


end best error for sound uyi 0.42115049975
end best error for sound ieu 0.418907944054
end best error for sound euo 0.48966005555
end best error for sound oiy 0.379668253512
end best error for sound oey 0.380378079235
end best error for sound uie 0.354519124834

Sound: yey   Iterations:  [161, 386]
Sound: euy   Iterations:  [484]
Sound: uoo   Iterations:  [411]
Sound: uee   Iterations:  [139, 1807, 1952]
Sound: uey   Iterations:  [585, 712]
Sound: oey   Iterations:  [1273, 1277, 1279, 1283, 1297, 1299, 1300, 1318, 1349, 1371, 1373, 1392, 1416, 1426, 1472, 1477, 1480, 1506, 1516, 1522, 1551, 1558, 1566, 1584, 1589, 1600, 1612, 1634, 1635, 1645, 1664, 1669, 1673, 1744, 1746, 1747]
Sound: oei   Iterations:  [1509, 1595, 1643, 1671, 1685, 1742]
Sound: oee   Iterations:  [32, 1295, 1298, 1308, 1321, 1325, 1335, 1337, 1341, 1357, 1362, 1375, 1378, 1429, 1490, 1500, 1502, 1511, 1518, 1525, 1526, 1532, 1538, 1548, 1552, 1557, 1568, 1571, 1576, 1581, 1599, 1603, 1604, 1615, 1620, 1622, 1636, 1637, 1638, 1639, 1648, 1660, 1680, 1684, 1691, 1692, 1702, 1705, 1706, 1709, 1712, 1715, 1719, 1722, 1731, 1739, 1741]
Sound: yuo   Iterations:  [1137, 1144, 1175, 1179, 1182, 1202, 1213, 1215, 1247]
Sound: yyy   Iterations:  [488]
Sound: uie   Iterations:  [663, 680, 1750, 1756, 1766, 1767, 1768, 1771, 1780, 1795, 1815, 1821, 1837, 1842, 1852, 1854, 1857, 1859, 1864, 1872, 1879, 1888, 1896, 1898, 1900, 1902, 1904, 1909, 1911, 1919, 1928, 1940, 1954, 1958, 1971, 1991, 1992, 1999]
Sound: yyi   Iterations:  [222]
Sound: eyi   Iterations:  [135]
Sound: ooe   Iterations:  [494]
Sound: uiy   Iterations:  [627, 1751, 1844, 1996]
Sound: yoo   Iterations:  [24]
Sound: oyy   Iterations:  [1267, 1271, 1272, 1274, 1276, 1281, 1284, 1286, 1294, 1301, 1305, 1309, 1316, 1323, 1329, 1333, 1334, 1338, 1340, 1342, 1346, 1351, 1365, 1368, 1370, 1372, 1374, 1381, 1383, 1384, 1385, 1391, 1394, 1395, 1396, 1398, 1400, 1403, 1405, 1410, 1412, 1415, 1417, 1418, 1420, 1430, 1435, 1436, 1441, 1447, 1451, 1454, 1458, 1459, 1463, 1465, 1468, 1469, 1473, 1484, 1485, 1492, 1494, 1505, 1507, 1520, 1521, 1524, 1533, 1540, 1547, 1561, 1593, 1606, 1607, 1608, 1623, 1630, 1633, 1653, 1654, 1656, 1687, 1694, 1711, 1726]
Sound: oyi   Iterations:  [1442, 1577, 1614, 1646]
Sound: oye   Iterations:  [254, 1347, 1350, 1356, 1369, 1407, 1488, 1493, 1501, 1523, 1546, 1569, 1583, 1588, 1590, 1592, 1605, 1611, 1651, 1743, 1745]
Sound: oii   Iterations:  [1601]
Sound: uyy   Iterations:  [536, 588, 589, 593, 598, 600, 611, 621, 635, 641, 650, 654, 671, 678, 692, 697, 710, 715, 738, 739, 741, 743, 747, 748, 1251, 1258, 1260, 1782, 1887, 1893, 1935]
Sound: oie   Iterations:  [1292, 1303, 1310, 1326, 1328, 1330, 1336, 1352, 1367, 1379, 1411, 1433, 1439, 1445, 1513, 1529, 1537, 1650, 1675]
Sound: uye   Iterations:  [594, 596, 599, 605, 607, 610, 616, 617, 623, 625, 631, 632, 634, 636, 640, 642, 643, 656, 657, 660, 661, 664, 674, 677, 679, 682, 683, 685, 696, 708, 709, 711, 716, 730, 731, 733, 734, 746, 1752, 1755, 1757, 1759, 1762, 1763, 1764, 1770, 1775, 1777, 1779, 1784, 1785, 1786, 1790, 1794, 1799, 1802, 1805, 1806, 1810, 1811, 1812, 1813, 1814, 1817, 1818, 1819, 1827, 1830, 1832, 1833, 1834, 1839, 1840, 1843, 1845, 1847, 1850, 1853, 1855, 1856, 1858, 1860, 1862, 1865, 1866, 1869, 1871, 1874, 1875, 1876, 1877, 1878, 1881, 1883, 1886, 1890, 1892, 1894, 1897, 1899, 1903, 1905, 1908, 1912, 1915, 1916, 1917, 1918, 1924, 1925, 1926, 1929, 1930, 1933, 1934, 1936, 1937, 1941, 1943, 1944, 1946, 1948, 1949, 1955, 1960, 1964, 1967, 1969, 1974, 1975, 1977, 1978, 1983, 1984, 1986, 1987, 1988, 1990, 1995]
Sound: oiy   Iterations:  [1287, 1307, 1324, 1331, 1339, 1353, 1359, 1364, 1380, 1387, 1390, 1399, 1419, 1438, 1440, 1450, 1464, 1478, 1479, 1489, 1496, 1497, 1618, 1624, 1626, 1661, 1667, 1672, 1735]
Sound: uyi   Iterations:  [592, 717, 724, 735]

Vowel [ i ] played 350 times
Vowel [ e ] played 758 times
Vowel [ u ] played 418 times
Vowel [ y ] played 973 times
Vowel [ o ] played 606 times

In [39]:
c3_it


Out[39]:
{'euo': -1, 'ieu': -1, 'oey': 0, 'oiy': -1, 'uie': 0, 'uyi': 217}

In [ ]:


In [40]:
c3_sounds, c3_errors, c3_it = train(n_motor_babbling=250, n_goal_babbling=250, n_imitation_each=500, explo_noise=0.1)


end best error for sound uyi 0.457412925238
end best error for sound ieu 0.548562308157
end best error for sound euo 0.329180399252
end best error for sound oiy 0.390295509861
end best error for sound oey 0.375213783907
end best error for sound uie 0.412268727493

Sound: ieu   Iterations:  [1431]
Sound: euu   Iterations:  [1784, 1821, 1879, 1922, 1926]
Sound: oyi   Iterations:  [273, 955, 2296]
Sound: uei   Iterations:  [721, 741, 780, 3028, 3332]
Sound: uee   Iterations:  [3067, 3072, 3099, 3109, 3122, 3221, 3296, 3328, 3439, 3442]
Sound: uey   Iterations:  [734, 791, 931, 936, 2027, 2372, 2589, 3013]
Sound: oii   Iterations:  [2041, 2064, 2130, 2245, 2461, 2561, 3043, 3179]
Sound: oey   Iterations:  [2056, 2068, 2078, 2106, 2132, 2136, 2146, 2511, 2527, 2563, 2569, 2573, 2587, 2632, 2643, 2645, 2656, 2692, 2699, 2704, 2720, 2742, 2770, 2819, 2821, 2824, 2829, 2845, 2868, 2877, 2944, 2945, 2955]
Sound: euo   Iterations:  [1587, 1717, 1748, 1753, 1793, 1799, 1807, 1825, 1829, 1840, 1851, 1875, 1880, 1896, 1898, 1914, 1924, 1938, 1991, 1994]
Sound: uuo   Iterations:  [494]
Sound: oee   Iterations:  [2523, 2544, 2581, 2665, 2743, 2846, 3152, 3197, 3278, 3308, 3366, 3438]
Sound: oei   Iterations:  [2016]
Sound: yuo   Iterations:  [1635, 1644, 1709, 1746, 1911]
Sound: yyu   Iterations:  [1000, 1023, 1025, 1044, 1046, 1050, 1058, 1072, 1075, 1077, 1081, 1105, 1128, 1131, 1136, 1168, 1172, 1378]
Sound: yyy   Iterations:  [226, 364, 1060, 1368]
Sound: uie   Iterations:  [3047, 3049, 3052, 3100, 3157, 3181, 3263, 3356, 3372, 3429]
Sound: yyo   Iterations:  [81]
Sound: yyi   Iterations:  [196]
Sound: eyo   Iterations:  [1212, 1868, 1920]
Sound: eyu   Iterations:  [1137, 1316, 1418, 1463, 1464, 1492, 1495]
Sound: eyy   Iterations:  [376]
Sound: iiu   Iterations:  [1395, 1442]
Sound: ooy   Iterations:  [284, 465, 658]
Sound: iyo   Iterations:  [1267]
Sound: iyu   Iterations:  [1130, 1150, 1152, 1165, 1173, 1244, 1247, 1260, 1261, 1265, 1270, 1274, 1297, 1302, 1317, 1324, 1330, 1333, 1334, 1346, 1350, 1364, 1369, 1390, 1393, 1402, 1403, 1406, 1409, 1419, 1427, 1429, 1436, 1440, 1449, 1474, 1497, 1498]
Sound: iyy   Iterations:  [1004, 1100, 1141, 1282, 1425]
Sound: uii   Iterations:  [2003, 2008, 3144, 3264, 3339, 3433]
Sound: uiy   Iterations:  [2028, 2253, 2291, 2344, 2404, 2420, 3011, 3021, 3082, 3279]
Sound: oyy   Iterations:  [2050, 2054, 2065, 2100, 2102, 2105, 2108, 2118, 2121, 2145, 2166, 2171, 2188, 2193, 2199, 2201, 2210, 2219, 2224, 2229, 2244, 2247, 2249, 2262, 2264, 2266, 2273, 2282, 2286, 2299, 2302, 2304, 2305, 2326, 2345, 2396, 2403, 2407, 2419, 2425, 2434, 2437, 2438, 2440, 2445, 2447, 2448, 2456, 2458, 2460, 2464, 2474, 2481, 2488, 2490, 2494, 2545, 2567, 2579, 2595, 2747, 2755, 2787, 2874, 2878, 2896, 2933]
Sound: yoy   Iterations:  [122, 292]
Sound: oye   Iterations:  [2154, 3089, 3134, 3172, 3217, 3306, 3430, 3444, 3474]
Sound: uyy   Iterations:  [592, 604, 671, 739, 775, 920, 933, 945, 948, 951, 2005, 2019, 2172, 2197, 2208, 2222, 2274, 2290, 2292, 2298, 2400, 2430, 2485]
Sound: oie   Iterations:  [2072, 2866, 3091, 3150, 3188, 3374]
Sound: uye   Iterations:  [3016, 3023, 3031, 3035, 3036, 3050, 3069, 3077, 3083, 3084, 3098, 3107, 3123, 3142, 3148, 3160, 3169, 3198, 3202, 3220, 3307, 3322, 3340, 3404, 3421, 3468]
Sound: oiy   Iterations:  [2038, 2097, 2216, 2236, 2265, 2277, 2294, 2306, 2320, 2329, 2348, 2355, 2409, 2426, 2442, 2449, 2479, 2715, 2763, 2786, 2883]
Sound: uyi   Iterations:  [504, 620, 652, 725, 753, 765, 800, 860, 909, 926, 929, 967, 970, 981, 2031, 3362, 3472]
Sound: eoo   Iterations:  [1823, 1857, 1910]

Vowel [ i ] played 667 times
Vowel [ e ] played 980 times
Vowel [ u ] played 656 times
Vowel [ y ] played 1641 times
Vowel [ o ] played 703 times

In [41]:
c3_it


Out[41]:
{'euo': 217, 'ieu': 431, 'oey': -1, 'oiy': 38, 'uie': -1, 'uyi': 4}

In [ ]:


In [42]:
c3_sounds, c3_errors, c3_it = train(n_motor_babbling=250, n_goal_babbling=250, n_imitation_each=1000, explo_noise=0.1)


end best error for sound uyi 0.272880995759
end best error for sound ieu 0.383104273921
end best error for sound euo 0.414489289958
end best error for sound oiy 0.484773787862
end best error for sound oey 0.386567506598
end best error for sound uie 0.328121268776

Sound: yey   Iterations:  [2361]
Sound: yeu   Iterations:  [1542, 1577, 1628, 1630, 1631, 1647, 1651, 1655, 1683, 1688, 1698, 1701, 1713, 1728, 1752, 1760, 1767, 1769, 1786, 1983, 1988, 2036, 2039, 2054, 2077, 2131, 2167, 2174, 2179, 2189, 2190, 2191, 2200, 2228, 2229, 2231, 2243, 2254, 2263, 2269, 2295, 2296, 2299, 2306, 2332, 2335, 2372, 2380, 2383, 2384, 2385, 2389, 2391, 2404, 2408, 2413, 2414, 2416, 2421, 2431, 2432, 2435, 2438, 2449, 2453, 2457, 2458, 2464, 2468, 2481, 2494]
Sound: iey   Iterations:  [1889, 2133, 2186]
Sound: uoy   Iterations:  [521]
Sound: ieu   Iterations:  [1578, 1607, 1616, 1692, 1703, 1740, 1759, 1771, 1793, 1805, 1806, 1817, 1824, 1825, 1854, 1858, 1866, 1884, 1886, 1908, 1924, 1961, 1967, 1976, 1979, 2012, 2015, 2016, 2046, 2050, 2072, 2101, 2128, 2342, 2354, 2417, 2465]
Sound: iei   Iterations:  [166]
Sound: euu   Iterations:  [3392]
Sound: uoo   Iterations:  [254]
Sound: iuo   Iterations:  [2794, 3029, 3173]
Sound: iuu   Iterations:  [3108]
Sound: eeu   Iterations:  [1561, 1624, 1710, 1714, 1784, 1926, 2035, 2104, 2472]
Sound: uei   Iterations:  [6383, 6400]
Sound: uee   Iterations:  [6220, 6375, 6398, 6415, 6459]
Sound: uey   Iterations:  [4794, 4841, 6414, 6491]
Sound: oii   Iterations:  [5150, 6476]
Sound: oey   Iterations:  [3570, 3579, 3584, 3595, 3623, 3624, 3640, 3651, 3682, 3711, 3721, 3806, 3817, 3819, 3839, 3847, 3876, 3931, 3952, 3967, 3971, 4010, 4055, 4078, 4081, 4112, 4124, 4189, 4198, 4243, 4475, 4530, 4531, 4555, 4578, 4608, 4622, 4630, 4648, 4656, 4693, 4694, 4726, 4803, 4853, 4861, 4872, 4878, 4887, 4894, 4921, 4924, 4943, 4990, 4991, 5004, 5005, 5010, 5035, 5046, 5055, 5070, 5073, 5080, 5123, 5137, 5239, 5245, 5262, 5275, 5276, 5292, 5385, 5401, 5418, 5420, 5421, 5433, 5487, 5492]
Sound: uuy   Iterations:  [500, 614]
Sound: euo   Iterations:  [2785, 2851, 2922, 2927, 2945, 2980, 3210, 3230, 3420, 3460, 3486, 3494]
Sound: oei   Iterations:  [5393]
Sound: oee   Iterations:  [3517, 5434, 5472]
Sound: yuo   Iterations:  [356, 2533, 2541, 2730, 2942, 3140]
Sound: yue   Iterations:  [28]
Sound: yyu   Iterations:  [2047, 2093, 2177, 2193, 2197, 2211, 2226, 2256, 2258, 2273, 2305, 2308, 2355, 2373, 2382, 2446, 2450, 2483, 2489]
Sound: yyy   Iterations:  [211, 3544]
Sound: yye   Iterations:  [1461, 5659, 5780, 6035, 6073, 6140, 6279, 6324]
Sound: uie   Iterations:  [6388, 6393, 6433, 6434, 6446]
Sound: yyo   Iterations:  [2696]
Sound: yyi   Iterations:  [796, 1021, 1229, 1487, 1497, 6291]
Sound: eyi   Iterations:  [261]
Sound: eyo   Iterations:  [2853, 2920]
Sound: eyu   Iterations:  [1804, 1925]
Sound: ooy   Iterations:  [300, 5445]
Sound: iyo   Iterations:  [3270]
Sound: iyi   Iterations:  [26]
Sound: iyu   Iterations:  [1613, 1629, 1700, 1821, 1839, 1883, 1957, 2103, 2292]
Sound: iyy   Iterations:  [463, 1893, 1931, 2265]
Sound: uii   Iterations:  [6385, 6421, 6422, 6428, 6450, 6460, 6471, 6495]
Sound: uiy   Iterations:  [3805, 4364, 4562]
Sound: yoo   Iterations:  [383, 3204]
Sound: oyy   Iterations:  [3528, 3537, 3539, 3541, 3546, 3554, 3558, 3561, 3569, 3573, 3580, 3586, 3587, 3589, 3593, 3605, 3606, 3610, 3625, 3638, 3639, 3646, 3650, 3653, 3655, 3656, 3659, 3663, 3666, 3668, 3669, 3675, 3681, 3683, 3687, 3688, 3693, 3694, 3696, 3697, 3699, 3706, 3718, 3720, 3726, 3729, 3737, 3748, 3752, 3757, 3758, 3760, 3761, 3766, 3768, 3770, 3772, 3773, 3774, 3775, 3777, 3778, 3785, 3786, 3792, 3796, 3803, 3812, 3816, 3818, 3824, 3834, 3835, 3837, 3842, 3844, 3851, 3852, 3859, 3870, 3877, 3879, 3891, 3892, 3893, 3896, 3901, 3913, 3914, 3921, 3930, 3939, 3940, 3947, 3955, 3959, 3964, 3965, 3970, 3987, 3994, 4002, 4007, 4008, 4009, 4014, 4015, 4023, 4026, 4028, 4029, 4030, 4039, 4042, 4044, 4047, 4056, 4064, 4065, 4072, 4074, 4075, 4079, 4085, 4091, 4092, 4098, 4105, 4107, 4109, 4115, 4117, 4134, 4139, 4141, 4150, 4151, 4157, 4163, 4167, 4184, 4188, 4209, 4215, 4217, 4220, 4224, 4228, 4232, 4233, 4234, 4242, 4249, 4256, 4261, 4273, 4274, 4279, 4285, 4309, 4311, 4312, 4317, 4318, 4324, 4326, 4335, 4340, 4344, 4348, 4350, 4358, 4371, 4373, 4375, 4376, 4388, 4394, 4397, 4406, 4409, 4414, 4418, 4422, 4423, 4431, 4434, 4437, 4441, 4443, 4444, 4449, 4452, 4454, 4474, 4484, 4488, 4496, 4499, 4500, 4507, 4547, 4560, 4563, 4566, 4606, 4625, 4629, 4639, 4642, 4650, 4655, 4664, 4679, 4714, 4725, 4752, 4761, 4781, 4821, 4830, 4836, 4847, 4851, 4866, 4895, 4908, 4911, 4915, 4923, 4928, 4938, 4939, 4946, 4955, 4957, 5002, 5013, 5024, 5099, 5105, 5109, 5128, 5142, 5143, 5159, 5160, 5168, 5202, 5252, 5261, 5267, 5270, 5272, 5274, 5291, 5303, 5316, 5328, 5337, 5338, 5341, 5348, 5353, 5356, 5360, 5362, 5409, 5468, 5493]
Sound: oyo   Iterations:  [424, 446]
Sound: oyi   Iterations:  [3526, 3531, 3973, 5450]
Sound: oye   Iterations:  [6399]
Sound: uyy   Iterations:  [544, 602, 618, 625, 655, 659, 674, 677, 699, 722, 800, 810, 820, 832, 850, 852, 861, 862, 884, 892, 906, 915, 935, 981, 1155, 1160, 1219, 1232, 1260, 1368, 1455, 3596, 3600, 3701, 3756, 3916, 3960, 4108, 4210, 4255, 4276, 4281, 4377, 4701, 5552, 5573, 5579, 5582, 5639, 5664, 5670, 5694, 5709, 5816, 5826, 5872, 5879, 5898, 5915, 5923, 5970, 5972, 6000, 6026, 6046, 6060, 6061, 6076, 6083, 6085, 6094, 6100, 6150, 6173, 6300, 6335]
Sound: uye   Iterations:  [790, 841, 887, 1004, 1085, 1108, 1170, 1199, 1223, 1248, 1277, 1333, 1339, 1430, 5512, 5515, 5517, 5522, 5525, 5530, 5531, 5536, 5538, 5542, 5544, 5557, 5572, 5596, 5598, 5605, 5609, 5620, 5638, 5646, 5661, 5669, 5676, 5677, 5679, 5681, 5687, 5703, 5707, 5722, 5724, 5740, 5741, 5743, 5748, 5750, 5751, 5757, 5759, 5763, 5778, 5781, 5796, 5823, 5847, 5848, 5858, 5861, 5863, 5900, 5937, 5949, 5957, 5968, 5969, 5978, 6002, 6003, 6009, 6011, 6017, 6027, 6033, 6036, 6043, 6053, 6071, 6116, 6120, 6121, 6138, 6145, 6162, 6167, 6184, 6195, 6215, 6218, 6227, 6233, 6246, 6247, 6255, 6258, 6259, 6262, 6265, 6272, 6302, 6316, 6336, 6338, 6342, 6343, 6347, 6369, 6392, 6402, 6408, 6410, 6417, 6426, 6465, 6483, 6484, 6497]
Sound: oiy   Iterations:  [3793, 3799, 3853, 3888, 3909, 3938, 3982, 4019, 4024, 4051, 4059, 4138, 4140, 4216, 4392, 4399, 4424, 4453, 4460, 4468, 4492, 4646, 4709, 4783, 4797, 4869, 4927, 5033, 5036, 5111, 5122, 5155, 5182, 5229, 5238, 5306, 5342, 5350, 5359, 5439]
Sound: uyi   Iterations:  [610, 703, 727, 758, 764, 774, 775, 831, 838, 843, 912, 933, 949, 962, 969, 977, 983, 986, 1007, 1010, 1015, 1059, 1067, 1070, 1072, 1075, 1083, 1084, 1089, 1096, 1107, 1116, 1128, 1131, 1135, 1154, 1157, 1177, 1200, 1201, 1210, 1243, 1286, 1296, 1300, 1318, 1334, 1342, 1371, 1396, 1405, 1422, 1431, 1434, 1442, 1445, 5501, 5504, 5511, 5537, 5539, 5543, 5545, 5548, 5565, 5566, 5574, 5588, 5594, 5595, 5629, 5633, 5637, 5640, 5643, 5649, 5651, 5652, 5654, 5657, 5660, 5663, 5666, 5668, 5697, 5701, 5705, 5732, 5755, 5765, 5766, 5767, 5774, 5788, 5790, 5793, 5795, 5819, 5822, 5838, 5888, 5902, 5918, 5920, 5921, 5966, 5975, 5998, 6005, 6006, 6013, 6037, 6048, 6051, 6090, 6106, 6134, 6152, 6153, 6157, 6190, 6209, 6221, 6266, 6278, 6280, 6317, 6319, 6320, 6323, 6367, 6425, 6435, 6436, 6438, 6444, 6481]

Vowel [ i ] played 1084 times
Vowel [ e ] played 1732 times
Vowel [ u ] played 1466 times
Vowel [ y ] played 3844 times
Vowel [ o ] played 1154 times

In [43]:
c3_it


Out[43]:
{'euo': 285, 'ieu': 107, 'oey': 0, 'oiy': -1, 'uie': 888, 'uyi': 227}

In [44]:
c3_sounds, c3_errors, c3_it = train(n_motor_babbling=250, n_goal_babbling=250, n_imitation_each=1000, explo_noise=0.05)


end best error for sound uyi 0.22642801195
end best error for sound ieu 0.263394857518
end best error for sound euo 0.323677078896
end best error for sound oiy 0.235498189516
end best error for sound oey 0.18368678383
end best error for sound uie 0.261365340223

Sound: yeu   Iterations:  [1887, 2183, 2194, 2199, 2215, 2237, 2254, 2299, 2324, 2339, 2341, 2354, 2396, 2422, 2483, 2488, 2498]
Sound: ieu   Iterations:  [1723, 1724, 1902, 1906, 1910, 1932, 1961, 1984, 2038, 2090, 2143, 2152, 2177, 2179, 2191, 2197, 2210, 2214, 2225, 2232, 2245, 2252, 2253, 2258, 2273, 2282, 2286, 2288, 2289, 2295, 2296, 2297, 2303, 2305, 2308, 2309, 2319, 2329, 2346, 2347, 2356, 2357, 2364, 2370, 2374, 2377, 2378, 2379, 2380, 2387, 2393, 2394, 2395, 2399, 2407, 2412, 2413, 2414, 2416, 2417, 2418, 2420, 2423, 2425, 2428, 2429, 2431, 2434, 2435, 2442, 2449, 2450, 2453, 2457, 2463, 2464, 2465, 2473, 2474, 2482, 2484, 2489, 2494, 2495, 2496]
Sound: oyi   Iterations:  [3626]
Sound: iuo   Iterations:  [2642, 2802, 2904, 2920, 2999, 3023, 3046, 3123, 3170, 3306, 3466]
Sound: eeu   Iterations:  [1988, 1993, 2000, 2017, 2049, 2064, 2084, 2086, 2098, 2114, 2234, 2244, 2274, 2275, 2280, 2315, 2352, 2353, 2426, 2469]
Sound: eei   Iterations:  [98]
Sound: uei   Iterations:  [516, 6073]
Sound: uee   Iterations:  [5506, 5589, 5600, 5602, 5623, 5625, 5664, 5675, 5679, 5681, 5688, 5739, 5762, 5763, 5769, 5770, 5791, 5793, 5813, 5816, 5819, 5824, 5825, 6034, 6043, 6145, 6218, 6251, 6270, 6280, 6287, 6295, 6298, 6313, 6318, 6337, 6340, 6346, 6348, 6355, 6406, 6428, 6431, 6465, 6494]
Sound: uey   Iterations:  [3540, 3798, 5889, 5942, 5962, 6019, 6030, 6062, 6065, 6129, 6136, 6170, 6176, 6211, 6212, 6217, 6297, 6302]
Sound: oey   Iterations:  [4169, 4173, 4174, 4175, 4183, 4198, 4238, 4254, 4297, 4373, 4407, 4500, 4501, 4502, 4504, 4506, 4507, 4514, 4518, 4519, 4520, 4521, 4523, 4526, 4531, 4532, 4543, 4544, 4545, 4546, 4547, 4548, 4549, 4550, 4553, 4554, 4555, 4557, 4559, 4561, 4562, 4563, 4564, 4565, 4566, 4567, 4569, 4573, 4574, 4575, 4577, 4578, 4580, 4581, 4582, 4583, 4587, 4589, 4590, 4592, 4593, 4595, 4598, 4600, 4601, 4608, 4609, 4611, 4614, 4616, 4619, 4620, 4623, 4625, 4628, 4631, 4633, 4634, 4637, 4642, 4644, 4645, 4646, 4647, 4648, 4650, 4651, 4652, 4653, 4654, 4655, 4656, 4661, 4662, 4664, 4665, 4666, 4667, 4668, 4669, 4672, 4673, 4675, 4676, 4677, 4679, 4680, 4681, 4682, 4683, 4690, 4691, 4692, 4695, 4696, 4699, 4702, 4704, 4705, 4706, 4708, 4709, 4710, 4712, 4717, 4718, 4719, 4720, 4722, 4723, 4724, 4731, 4732, 4734, 4735, 4736, 4737, 4738, 4739, 4742, 4745, 4746, 4747, 4748, 4749, 4751, 4754, 4755, 4756, 4757, 4758, 4759, 4760, 4763, 4766, 4767, 4771, 4772, 4773, 4774, 4775, 4777, 4778, 4780, 4781, 4783, 4784, 4785, 4788, 4789, 4790, 4791, 4792, 4795, 4798, 4799, 4800, 4801, 4802, 4808, 4809, 4810, 4811, 4812, 4813, 4815, 4816, 4817, 4818, 4819, 4823, 4828, 4829, 4830, 4831, 4833, 4834, 4835, 4836, 4837, 4838, 4839, 4840, 4842, 4843, 4845, 4846, 4848, 4849, 4850, 4852, 4853, 4854, 4856, 4858, 4859, 4862, 4864, 4866, 4867, 4869, 4871, 4872, 4873, 4874, 4875, 4877, 4878, 4879, 4882, 4885, 4886, 4887, 4888, 4889, 4891, 4892, 4893, 4894, 4896, 4897, 4898, 4899, 4900, 4901, 4902, 4904, 4908, 4911, 4912, 4913, 4914, 4915, 4917, 4919, 4920, 4923, 4926, 4927, 4928, 4932, 4933, 4934, 4937, 4939, 4940, 4941, 4942, 4945, 4947, 4953, 4954, 4955, 4956, 4957, 4960, 4961, 4963, 4964, 4966, 4968, 4970, 4971, 4973, 4976, 4977, 4978, 4980, 4981, 4982, 4984, 4985, 4991, 4993, 4995, 4998, 5000, 5002, 5004, 5006, 5007, 5010, 5011, 5013, 5014, 5016, 5017, 5021, 5022, 5024, 5025, 5026, 5027, 5028, 5030, 5032, 5035, 5038, 5039, 5040, 5041, 5043, 5045, 5047, 5049, 5050, 5051, 5052, 5054, 5055, 5057, 5058, 5059, 5060, 5062, 5065, 5068, 5071, 5072, 5077, 5081, 5083, 5091, 5093, 5096, 5097, 5100, 5102, 5106, 5107, 5108, 5110, 5111, 5112, 5113, 5115, 5117, 5119, 5120, 5121, 5123, 5124, 5125, 5127, 5128, 5131, 5132, 5133, 5134, 5135, 5136, 5138, 5140, 5143, 5147, 5149, 5152, 5153, 5154, 5155, 5156, 5157, 5159, 5161, 5162, 5163, 5164, 5165, 5167, 5169, 5172, 5173, 5174, 5175, 5176, 5178, 5180, 5182, 5186, 5188, 5189, 5193, 5197, 5198, 5199, 5200, 5201, 5203, 5204, 5207, 5208, 5209, 5211, 5212, 5213, 5214, 5215, 5217, 5220, 5221, 5222, 5223, 5224, 5225, 5227, 5228, 5231, 5237, 5240, 5241, 5242, 5243, 5245, 5248, 5251, 5252, 5253, 5254, 5255, 5258, 5259, 5261, 5263, 5268, 5273, 5274, 5275, 5277, 5282, 5283, 5284, 5285, 5286, 5287, 5289, 5293, 5294, 5295, 5296, 5298, 5300, 5301, 5302, 5304, 5305, 5306, 5307, 5313, 5315, 5318, 5321, 5322, 5323, 5324, 5326, 5327, 5328, 5329, 5331, 5332, 5334, 5335, 5340, 5343, 5346, 5347, 5351, 5352, 5355, 5356, 5358, 5365, 5367, 5369, 5370, 5372, 5373, 5374, 5375, 5376, 5377, 5379, 5381, 5382, 5384, 5385, 5388, 5391, 5392, 5394, 5397, 5398, 5399, 5400, 5401, 5402, 5403, 5404, 5405, 5406, 5408, 5410, 5411, 5415, 5416, 5419, 5420, 5421, 5422, 5425, 5430, 5433, 5434, 5436, 5440, 5442, 5443, 5444, 5447, 5448, 5449, 5450, 5451, 5452, 5453, 5454, 5456, 5457, 5458, 5460, 5462, 5463, 5464, 5465, 5466, 5467, 5470, 5471, 5472, 5474, 5476, 5477, 5480, 5481, 5482, 5484, 5485, 5486, 5487, 5489, 5490, 5491, 5492, 5494, 5495, 5497]
Sound: euo   Iterations:  [2995, 3002, 3004, 3019, 3021, 3024, 3047, 3056, 3063, 3068, 3071, 3077, 3078, 3084, 3087, 3094, 3117, 3120, 3129, 3130, 3133, 3135, 3137, 3139, 3140, 3143, 3144, 3150, 3152, 3155, 3164, 3167, 3173, 3177, 3179, 3181, 3190, 3200, 3206, 3207, 3216, 3218, 3223, 3230, 3235, 3239, 3241, 3258, 3272, 3278, 3281, 3282, 3283, 3284, 3287, 3305, 3311, 3312, 3317, 3318, 3330, 3332, 3334, 3336, 3338, 3341, 3348, 3350, 3352, 3369, 3375, 3377, 3382, 3383, 3389, 3393, 3397, 3398, 3399, 3408, 3415, 3416, 3418, 3420, 3427, 3442, 3444, 3448, 3462, 3469, 3474, 3478, 3480, 3489, 3494]
Sound: yuo   Iterations:  [2551, 2554, 2564, 2574, 2575, 2624, 2633, 2648, 2675, 2713, 2714, 2722, 2740, 2765, 2767, 2769, 2771, 2782, 2797, 2812, 2817, 2821, 2826, 2836, 2853, 2859, 2882, 2887, 2905, 2929, 2965, 3118]
Sound: yyu   Iterations:  [1643, 1701, 1703, 1736, 1753, 1784, 2182, 2320, 2403, 2424, 2455]
Sound: uie   Iterations:  [5519, 5633, 5718, 5721, 5727, 5836, 5847, 5946, 5948, 5970, 6025, 6038, 6041, 6075, 6086, 6094, 6114, 6123, 6152, 6157, 6160, 6190, 6214, 6232, 6236, 6238, 6254, 6255, 6267, 6276, 6282, 6294, 6328, 6329, 6333, 6336, 6359, 6360, 6361, 6378, 6380, 6382, 6386, 6389, 6391, 6393, 6394, 6395, 6399, 6404, 6407, 6409, 6417, 6423, 6424, 6426, 6434, 6440, 6443, 6444, 6456, 6461, 6464, 6467, 6471, 6473, 6474, 6477, 6479, 6480, 6482, 6487, 6489, 6490, 6491, 6492, 6495, 6496, 6498, 6499]
Sound: yyo   Iterations:  [317]
Sound: eye   Iterations:  [121]
Sound: yiu   Iterations:  [1636, 1695, 1717, 1718, 1719, 1766, 1767, 1807, 1825, 1840, 1843, 1844, 1892, 1907, 1936, 1963, 2018, 2022, 2051, 2095, 2115, 2122, 2247, 2314, 2321, 2383, 2385, 2478]
Sound: eyu   Iterations:  [1850, 2035, 2104, 2117, 2147, 2168, 2246, 2362, 2411]
Sound: iiu   Iterations:  [1628, 1629, 1630, 1633, 1634, 1638, 1639, 1640, 1641, 1645, 1647, 1651, 1652, 1654, 1656, 1657, 1658, 1660, 1664, 1665, 1666, 1669, 1674, 1680, 1681, 1685, 1688, 1689, 1693, 1696, 1697, 1700, 1702, 1705, 1709, 1710, 1711, 1714, 1716, 1725, 1726, 1740, 1742, 1743, 1749, 1750, 1751, 1756, 1758, 1760, 1761, 1763, 1769, 1772, 1775, 1776, 1777, 1780, 1787, 1790, 1795, 1798, 1799, 1801, 1802, 1806, 1811, 1812, 1815, 1818, 1819, 1826, 1828, 1829, 1831, 1836, 1838, 1842, 1845, 1847, 1849, 1855, 1858, 1860, 1861, 1864, 1868, 1870, 1871, 1878, 1879, 1881, 1889, 1890, 1893, 1896, 1897, 1901, 1903, 1905, 1908, 1909, 1912, 1916, 1917, 1920, 1923, 1925, 1928, 1929, 1941, 1942, 1945, 1950, 1951, 1952, 1953, 1958, 1965, 1973, 1978, 1983, 1991, 1995, 2010, 2015, 2024, 2030, 2032, 2043, 2053, 2054, 2055, 2056, 2057, 2058, 2065, 2070, 2076, 2093, 2111, 2113, 2124, 2125, 2129, 2131, 2133, 2137, 2139, 2140, 2141, 2150, 2153, 2155, 2160, 2161, 2162, 2163, 2164, 2171, 2172, 2173, 2190, 2203, 2212, 2219, 2227, 2231, 2233, 2240, 2248, 2255, 2287, 2294, 2318, 2326, 2327, 2343, 2345, 2350, 2384, 2386, 2390, 2400, 2401, 2421, 2430, 2432, 2441, 2444, 2447, 2454, 2475, 2486, 2490]
Sound: iiy   Iterations:  [1962]
Sound: eiu   Iterations:  [1644, 1686, 1745, 1839, 1862, 1940, 1943, 1944, 1959, 1960, 1977, 1981, 2006, 2081, 2099, 2108, 2112, 2116, 2126, 2132, 2135, 2159, 2165, 2169, 2176, 2238, 2279, 2301]
Sound: eiy   Iterations:  [2040]
Sound: iyu   Iterations:  [1661, 1676, 1678, 1691, 1704, 1741, 1744, 1752, 1759, 1762, 1771, 1778, 1779, 1783, 1788, 1796, 1797, 1814, 1823, 1830, 1832, 1833, 1835, 1880, 1911, 1922, 2005, 2016, 2062, 2075, 2145, 2202, 2226, 2257, 2259, 2262, 2266, 2278, 2331, 2376, 2440, 2461, 2487]
Sound: uii   Iterations:  [5693, 5849, 5859, 5868, 5909, 5930, 5950, 5968, 6007, 6010, 6023, 6024, 6057, 6079, 6090, 6097, 6110, 6132, 6137, 6180, 6183, 6189, 6248, 6250, 6259, 6291, 6369, 6379, 6405, 6410, 6414, 6425, 6427, 6432, 6436, 6442, 6446, 6453, 6458, 6462, 6466, 6475, 6485, 6486]
Sound: uiy   Iterations:  [5704, 5846, 5860, 5875, 5880, 5882, 5907, 5938, 5939, 5951, 5954, 5967, 5981, 5992, 5994, 5999, 6001, 6002, 6005, 6011, 6029, 6031, 6032, 6036, 6063, 6067, 6077, 6089, 6096, 6107, 6111, 6118, 6119, 6127, 6130, 6154, 6166, 6171, 6174, 6182, 6187, 6192, 6198, 6205, 6206, 6215, 6242, 6283, 6310, 6334, 6357, 6362, 6370, 6376, 6377, 6383, 6387, 6412, 6413, 6420, 6421, 6437, 6459, 6470, 6476, 6484]
Sound: oyy   Iterations:  [61, 3916, 3956, 3984, 4027, 4035, 4040, 4043, 4050, 4055, 4075, 4076, 4121, 4124, 4134, 4168, 4179, 4204, 4217, 4225, 4226, 4227, 4241, 4247, 4255, 4259, 4272, 4301, 4302, 4312, 4315, 4333, 4354, 4359, 4363, 4367, 4380, 4392, 4451, 4454, 4464, 4467, 4470, 4473, 4474, 4475, 4477, 4485, 4493, 4498, 4508, 4535, 4551, 4558, 4579, 4584, 4594, 4596, 4599, 4603, 4604, 4610, 4622, 4624, 4627, 4635, 4636, 4640, 4641, 4643, 4762, 4768, 4769, 4786, 4803, 4820, 4822, 4851, 4863, 4876, 4880, 4883, 4895, 4903, 4921, 4922, 4925, 4936, 4944, 4967, 4974, 4986, 4992, 5005, 5020, 5034, 5048, 5056, 5064, 5066, 5067, 5069, 5079, 5089, 5095, 5105, 5158, 5170, 5183, 5218, 5229, 5230, 5246, 5249, 5264, 5269, 5270, 5291, 5314, 5316, 5319, 5325, 5336, 5338, 5341, 5360, 5362, 5366, 5371, 5383, 5395, 5396, 5409, 5461, 5468, 5469, 5475]
Sound: oyu   Iterations:  [363, 420]
Sound: yoy   Iterations:  [264]
Sound: uyy   Iterations:  [515, 535, 759, 820, 845, 904, 908, 925, 944, 983, 997, 1015, 1018, 1034, 1043, 1068, 1090, 1116, 1152, 1192, 1363, 1390, 1407, 1420, 1441, 1442, 1480, 1492, 5509, 5510, 5512, 5516, 5536, 5537, 5560, 5587, 5591, 5620, 5624, 5643, 5644, 5651, 5673, 5683, 5689, 5738, 5815, 5829, 5832, 5853, 5864, 5866, 5890, 5891, 5914, 5917, 5931, 5932, 5935, 5937, 5941, 5960, 5975, 5979, 5985, 5995, 6003, 6045, 6049, 6050, 6058, 6059, 6061, 6076, 6082, 6098, 6108, 6128, 6140, 6141, 6142, 6143, 6146, 6168, 6177, 6179, 6184, 6185, 6188, 6203, 6213, 6224, 6226, 6230, 6231, 6239, 6243, 6252, 6266, 6268, 6296, 6308, 6323, 6402, 6463]
Sound: uye   Iterations:  [528, 542, 709, 806, 814, 832, 839, 846, 849, 853, 857, 865, 866, 867, 870, 871, 880, 884, 885, 887, 891, 894, 896, 903, 906, 917, 921, 923, 926, 928, 932, 935, 936, 941, 955, 957, 960, 964, 969, 977, 982, 989, 995, 996, 998, 999, 1011, 1019, 1020, 1023, 1027, 1039, 1058, 1066, 1071, 1076, 1088, 1089, 1100, 1104, 1106, 1115, 1120, 1122, 1134, 1159, 1168, 1171, 1174, 1175, 1177, 1187, 1189, 1193, 1197, 1208, 1209, 1212, 1213, 1226, 1229, 1234, 1243, 1246, 1271, 1272, 1277, 1279, 1283, 1284, 1296, 1302, 1304, 1321, 1323, 1324, 1327, 1333, 1335, 1336, 1339, 1341, 1344, 1356, 1366, 1372, 1373, 1378, 1387, 1397, 1399, 1409, 1415, 1419, 1425, 1426, 1427, 1428, 1429, 1435, 1437, 1452, 1455, 1464, 1467, 1468, 1484, 1487, 1491, 5508, 5511, 5517, 5518, 5521, 5523, 5525, 5529, 5534, 5542, 5547, 5551, 5553, 5557, 5558, 5561, 5562, 5563, 5565, 5566, 5567, 5569, 5576, 5579, 5581, 5583, 5586, 5588, 5590, 5594, 5596, 5597, 5598, 5607, 5608, 5609, 5613, 5616, 5622, 5626, 5628, 5629, 5630, 5639, 5641, 5645, 5650, 5652, 5653, 5656, 5660, 5667, 5668, 5670, 5671, 5676, 5677, 5682, 5684, 5685, 5686, 5699, 5701, 5702, 5706, 5710, 5713, 5714, 5715, 5716, 5720, 5723, 5725, 5732, 5742, 5744, 5747, 5748, 5749, 5750, 5752, 5753, 5759, 5766, 5768, 5772, 5773, 5774, 5775, 5776, 5777, 5778, 5779, 5780, 5782, 5783, 5787, 5788, 5790, 5794, 5796, 5797, 5809, 5810, 5812, 5814, 5817, 5818, 5820, 5821, 5823, 5826, 5830, 5834, 5843, 5844, 5924, 5955, 5961, 5971, 5980, 5982, 6028, 6060, 6068, 6092, 6134, 6158, 6194, 6200, 6216, 6221, 6222, 6225, 6235, 6237, 6244, 6246, 6247, 6253, 6256, 6262, 6264, 6271, 6272, 6275, 6278, 6281, 6285, 6290, 6299, 6300, 6305, 6315, 6319, 6324, 6326, 6331, 6341, 6342, 6343, 6345, 6347, 6350, 6354, 6356, 6358, 6363, 6364, 6372, 6373, 6384, 6390, 6408, 6418, 6430, 6435, 6438, 6439, 6441, 6449, 6457, 6469, 6483, 6497]
Sound: oiy   Iterations:  [3855, 3919, 3952, 3977, 3982, 3994, 4005, 4012, 4088, 4108, 4109, 4117, 4131, 4155, 4167, 4172, 4184, 4189, 4193, 4197, 4199, 4200, 4205, 4206, 4212, 4218, 4219, 4220, 4222, 4224, 4229, 4234, 4236, 4242, 4248, 4251, 4260, 4261, 4263, 4264, 4265, 4268, 4269, 4277, 4279, 4281, 4282, 4283, 4285, 4286, 4288, 4289, 4292, 4293, 4294, 4296, 4299, 4305, 4306, 4307, 4309, 4310, 4311, 4318, 4319, 4321, 4322, 4325, 4328, 4329, 4330, 4332, 4334, 4337, 4339, 4340, 4341, 4342, 4343, 4344, 4349, 4350, 4351, 4352, 4355, 4357, 4358, 4362, 4364, 4365, 4369, 4371, 4372, 4376, 4381, 4386, 4387, 4388, 4390, 4393, 4396, 4397, 4399, 4403, 4405, 4409, 4411, 4415, 4419, 4422, 4424, 4430, 4431, 4433, 4434, 4437, 4438, 4447, 4453, 4455, 4456, 4457, 4458, 4459, 4461, 4462, 4463, 4466, 4468, 4469, 4471, 4472, 4478, 4479, 4487, 4489, 4490, 4492, 4497, 4499, 4522, 4524, 4534, 4568, 4570, 4572, 4585, 4606, 4607, 4621, 4626, 4649, 4660, 4825, 4999, 5122, 5191, 5260, 5455]
Sound: uyi   Iterations:  [526, 527, 531, 533, 541, 545, 548, 549, 553, 554, 556, 557, 560, 570, 572, 577, 579, 581, 583, 584, 585, 586, 591, 592, 598, 602, 603, 605, 613, 616, 617, 620, 622, 625, 627, 628, 630, 631, 635, 641, 645, 650, 656, 658, 661, 662, 668, 669, 670, 671, 673, 678, 679, 682, 685, 687, 688, 689, 691, 693, 694, 695, 698, 701, 702, 704, 705, 712, 717, 719, 720, 722, 723, 728, 731, 732, 735, 737, 740, 742, 744, 745, 746, 747, 751, 753, 754, 756, 757, 760, 762, 764, 765, 767, 768, 769, 770, 776, 778, 780, 781, 783, 784, 785, 787, 789, 792, 793, 794, 797, 798, 799, 800, 801, 802, 803, 805, 807, 809, 810, 811, 815, 817, 819, 821, 823, 826, 827, 830, 836, 840, 841, 844, 850, 851, 852, 854, 855, 859, 861, 862, 863, 864, 869, 874, 877, 878, 879, 881, 882, 886, 893, 895, 897, 900, 901, 910, 912, 914, 919, 922, 934, 938, 939, 942, 945, 947, 948, 951, 953, 954, 956, 962, 966, 967, 974, 978, 979, 984, 986, 990, 991, 992, 993, 994, 1002, 1003, 1005, 1006, 1007, 1010, 1014, 1030, 1032, 1037, 1038, 1040, 1041, 1042, 1047, 1051, 1052, 1053, 1054, 1056, 1057, 1061, 1067, 1070, 1073, 1075, 1078, 1079, 1080, 1083, 1084, 1086, 1087, 1096, 1097, 1099, 1101, 1103, 1110, 1111, 1112, 1113, 1118, 1123, 1129, 1132, 1136, 1142, 1143, 1144, 1145, 1153, 1155, 1157, 1161, 1163, 1165, 1166, 1178, 1179, 1180, 1181, 1186, 1188, 1200, 1203, 1204, 1205, 1210, 1211, 1214, 1216, 1218, 1220, 1222, 1225, 1227, 1230, 1232, 1235, 1237, 1238, 1240, 1244, 1247, 1251, 1259, 1260, 1264, 1266, 1268, 1269, 1275, 1287, 1288, 1290, 1292, 1299, 1303, 1305, 1306, 1307, 1308, 1309, 1313, 1317, 1319, 1322, 1329, 1330, 1334, 1338, 1340, 1345, 1347, 1350, 1354, 1357, 1358, 1360, 1364, 1365, 1367, 1369, 1370, 1374, 1375, 1376, 1377, 1380, 1382, 1391, 1393, 1394, 1395, 1401, 1402, 1403, 1404, 1408, 1413, 1414, 1423, 1432, 1433, 1434, 1436, 1438, 1439, 1440, 1443, 1444, 1447, 1450, 1457, 1458, 1461, 1462, 1463, 1465, 1472, 1473, 1474, 1475, 1477, 1478, 1482, 1483, 1488, 1495, 1496, 1498, 1499, 3500, 3506, 5500, 5501, 5502, 5503, 5507, 5514, 5515, 5520, 5522, 5524, 5526, 5527, 5528, 5532, 5539, 5546, 5548, 5549, 5550, 5554, 5564, 5568, 5570, 5575, 5577, 5578, 5601, 5605, 5610, 5611, 5627, 5631, 5632, 5635, 5638, 5642, 5646, 5661, 5669, 5672, 5674, 5678, 5687, 5690, 5692, 5695, 5696, 5705, 5709, 5712, 5729, 5730, 5731, 5733, 5736, 5737, 5758, 5760, 5761, 5764, 5767, 5781, 5785, 5792, 5833, 5837, 5840, 5842, 5858, 5870, 5940, 6202, 6245, 6257, 6265, 6273, 6274, 6286, 6288, 6303, 6312, 6314, 6320, 6332, 6366, 6397, 6403, 6419, 6433, 6445, 6450, 6454, 6455, 6488]

Vowel [ i ] played 2458 times
Vowel [ e ] played 2203 times
Vowel [ u ] played 2632 times
Vowel [ y ] played 3953 times
Vowel [ o ] played 1627 times

In [45]:
c3_it


Out[45]:
{'euo': 629, 'ieu': 677, 'oey': 0, 'oiy': 667, 'uie': 347, 'uyi': 26}

In [ ]: