Coder Social home page Coder Social logo

Comments (5)

zoq avatar zoq commented on August 22, 2024

Agreed, I can take this up.

from ensmallen.

rcurtin avatar rcurtin commented on August 22, 2024

You're right that it can simplify the code if we do that, but it makes it harder for a user to include only a small part of ensmallen, e.g.

#include <ensmallen_bits/sgd/sgd.hpp>

if they only want to use SGD, for instance. I don't have a huge preference either way, but it shouldn't be a problem to have the #include <armadillo> around.

from ensmallen.

conradsnicta avatar conradsnicta commented on August 22, 2024

To keep things simple, I suggest to have #include <ensmallen.hpp> as the only supported way of using ensmallen within user code. Otherwise there's just too much stuff for us to worry about, both in the code and documentation. This slows down development and adds to the maintenance burden.

If a user really only wants sgd, they're free to rip it out of the codebase themselves.

I don't think we should try to be overly flexible (ie. be everything to everyone). Having a focused and easy to use product would go a long way towards acceptance.

from ensmallen.

rcurtin avatar rcurtin commented on August 22, 2024

That's a fair point, and like I said I don't have a huge preference so I'm fine with it. It might be useful to put a note in ensmallen.hpp that it's expected that ensmallen.hpp is the only header included to include the library.

from ensmallen.

conradsnicta avatar conradsnicta commented on August 22, 2024

It might be useful to put a note in ensmallen.hpp that it's expected that ensmallen.hpp is the only header included to include the library.

done

from ensmallen.

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.