Ejemplo n.º 1
0
    def test_system_factory_method_solo_mechs(self):

        T1 = TransferMechanism()
        T2 = TransferMechanism()
        T3 = TransferMechanism()
        s = sys(T1, T2, T3, learning_rate=0.65)
        assert s.learning_rate == 0.65
        assert T1 in s.origin_mechanisms
        assert not T2 in s.origin_mechanisms
        assert T3 in s.terminal_mechanisms
Ejemplo n.º 2
0
    def test_system_factory_method_mech_list(self):

        T1 = TransferMechanism()
        T2 = TransferMechanism()
        T3 = TransferMechanism()
        s = sys([T1, T2, T3], learning_rate=0.85)
        assert s.learning_rate == 0.85
        assert T1 in s.origin_mechanisms
        assert not T2 in s.origin_mechanisms
        assert T3 in s.terminal_mechanisms