Giter Club home page Giter Club logo

Comments (7)

stsievert avatar stsievert commented on May 28, 2024

I think this could be resolved by calling "API Documentation" a section (not a subsection)

from pyswarms.

ljvmiranda921 avatar ljvmiranda921 commented on May 28, 2024

Hi @stsievert , sorry I just saw this now. Thank you for the feedback and I’ll work on this right away.

from pyswarms.

ljvmiranda921 avatar ljvmiranda921 commented on May 28, 2024

Hi @stsievert ,

I accomplished moving the API Documentation subsection in its own section, which I think is a really good suggestion, but the problem

Going from two pages on the documentation requires going to an intermediate page. For example, going from discrete.binary to [single.global_best module] requires two clicks.

still persists. It turns out that one really has to click the specific package (pyswarms.single or pyswarms.discrete) to access the modules inside of it.

I'm thinking of removing the upper-level hierarchy (pyswarms.single, pyswarms.discrete), but I prefer PR #64 's set-up more because it divides the optimizers wrt the specific problem they're trying to solve (i.e. single-objective, discrete-optim). This also provides a good structure in case we expand to different problem types (e.g. pyswarms.multi or pyswarms.constrained for multi-objective and constrained).

I'm still looking for a JS workaround to automatically expose all the modules right away without having to click, but it might take more time.

What do you think?

  • Browser: Google Chrome

Move API Documentation as a new Section

new toc

Comparison

discrete.binary single.global_best
pyswarms toc discrete pyswarms toc single

from pyswarms.

stsievert avatar stsievert commented on May 28, 2024

A JS solution feels like a hack, and it looks like reduced the number of clicks required to navigate (ie, going from optimizers to utilizes looks easier).

from pyswarms.

ljvmiranda921 avatar ljvmiranda921 commented on May 28, 2024

Hi @stsievert ,

A JS solution feels like a hack

Well I feel the same way. I think it's part of Sphinx that the dropdown only appears depending on the page you are in.

Another way would be to remove the package hierarchy altogether (single, discrete), so as to expose the modules inside (global_best, local_best, discrete)— but I believe it's better to maintain the current structure, so the problem domains are much clearer (and scalable if new variants come in the future). What do you think?

it looks like reduced the number of clicks required to navigate (ie, going from optimizers to utilizes looks easier).

Yes it does, your suggestion to move API Documentation up one section is actually good. Thanks! 👍

from pyswarms.

stsievert avatar stsievert commented on May 28, 2024

to remove the package hierarchy altogether (single, discrete),

I think the hierarchy should stay, it sounds like it adds some useful information.

reduced the number of clicks required to navigate ... Yes it does

Then this issue is addressed. I’m comfortable closing it.

from pyswarms.

ljvmiranda921 avatar ljvmiranda921 commented on May 28, 2024

Thanks a lot, @stsievert !

Merged #64

from pyswarms.

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.