Hi,

Is there a cleaner way to set conx's seed so that I can run a repeatable training experiment?

I ended up modifying conx's Network class's __init__, adding a seed flag to it, e.g.

def __init__(self, name = 'Backprop Network', verbosity = 0, seed=None):
        """
        Constructor for the Network class. Takes optional name and
        verbosity arguments.
        """
        if seed==None :
            x = random.random() * 100000 + time.time()
        else :
            x = seed

but would rather use a built-in method if there is one (I couldn't find it). Otherwise, if such a thing doesn't exist, it would be worth making this change so that, for teaching purposes, we can run a particular experiment in the classroom.

Advice always appreciated.

Thx,

--b
_______________________________________________
Pyro-users mailing list
[email protected]
http://emergent.brynmawr.edu/mailman/listinfo/pyro-users

Reply via email to