Git Product home page Git Product logo

Comments (6)

dnouri avatar dnouri commented on July 2, 2024

The implementation of NeuralNet.load_weights_from will try to copy weights from layers that match up; they should be in the same position, and have the same number of parameters. That's what the implementation does here: https://github.com/dnouri/nolearn/blob/master/nolearn/lasagne.py#L349

from nolearn.

run2 avatar run2 commented on July 2, 2024

Hmm - thanks. I had a network with 32,64,128 kernels in 3 convpool layers (followed by 3 dense layers). I loaded it into another network with 64,138,256 kernels (rest remaining the same). So ideally that should have been as good as a fresh start ? or only the dense layers will have a trained start while the rest have a fresh start ?

from nolearn.

dnouri avatar dnouri commented on July 2, 2024

Yes, your dense layers will be initialized with those weights. I think @BenjaminBossan has code that adds a little bit of feedback to load_weights_from, so that as a user, you'll know which weights were copied and which weren't.

from nolearn.

run2 avatar run2 commented on July 2, 2024

Thanks

from nolearn.

BenjaminBossan avatar BenjaminBossan commented on July 2, 2024

I have the code here:
https://github.com/BenjaminBossan/nolearn
Just take that code or copy from the lasagne.py module. There are no tests yet, I hope it works. It did for me.

I would have made a pull request but I don't exactly know how to yet and am short on time. Good luck.

from nolearn.

run2 avatar run2 commented on July 2, 2024

Thanks Benjamin

from nolearn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.