Comments (7)
I think this could be resolved by calling "API Documentation" a section (not a subsection)
from pyswarms.
Hi @stsievert , sorry I just saw this now. Thank you for the feedback and I’ll work on this right away.
from pyswarms.
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
Comparison
discrete.binary | single.global_best |
---|---|
from pyswarms.
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.
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.
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.
Thanks a lot, @stsievert !
Merged #64
from pyswarms.
Related Issues (20)
- Optimizing using pre-defined options of positive integers
- How to integrate it in Pytorch or Paddlepaddle training loop? HOT 1
- How to define a constrained bounds?
- Passing verbose and n_processes to hyperparameter tuning algorithms
- compute_Pbest - compute gbest weird behavior
- Problem with conditional functions in multi-dimension particles
- How to define a discrete design space when using pyswarms.discrete.binary module
- Final Best Position Logical Error
- init_pos does not seem to work as expected
- TypeError: f() got an unexpected keyword argument 'print_step'
- Tests fail with Matplotlib 3.7
- A toy problem example - need help to use PySwarms
- Release missmatch (Missing release on github)
- Having Issue in optimizer HOT 1
- mean_neighbor_cost value in history Tuple of optimizers
- parallel pyswarms not working
- TypeError: '<' not supported between instances of 'generator' and 'float' HOT 1
- Test failures
- Dependency on future
- Unexpected stagnation with VonNeumann and Pyramid topologies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyswarms.