nilinswap / neuro-evolution

A project on improving Neural Networks performance by using Genetic Algorithms.
GNU General Public License v3.0
24 stars 5 forks source link

Change data structure for chromosome #15

Closed nilinswap closed 7 years ago

nilinswap commented 7 years ago

it's just a simple nd.array for now. Change this to a dictionary (map). format is mentioned below.

` chromosome={
                                     log_reg_w : np.array([
                                            [blah,blah]
                                            ,..,
                                            [blah,blah]
                                            ]),
                            log_reg_b : np.array([
                                            [blah,blah]
                                            ,..,
                                            [blah,blah]
                                            ]),
                            hid_lay_w : np.array([
                                            [blah,blah]
                                            ,..,
                                            [blah,blah]
                                            ]),
                            hid_lay_b : np.array([
                                            [blah,blah]
                                            ,..,
                                            [blah,blah]
                                            ])

    } `
ghost commented 7 years ago

Why is it a dictionary? It should be a List of tuples or something.

ghost commented 7 years ago

These branches and so many versions of codes are getting out of hand. So, I am trying to simplify it back by adding a folder in master "new_chromo" commit.

Check it out for the new structure, with documentation @nilinswap .