Comments (6)
Thanks for noticing. There is not specific reason apart from ignorance of the existence of the logging
module at the time of coding. I'll be happy to consider your PR!
from pycma.
Thanks for answering. I've already done some very minor and ugly modifications for my own use, I'll consider removing all the print
s out there, in a clean way.
from pycma.
Playing around with the logging
module (I find the documentation slightly too complicated). The caveats I have so far: logging.info
prints on red background, which I don't like for generic output messages. Is there a simple way to change this? This recommends to use warnings.warn
when the client code should try to prevent the warning. I can see that the logging
module is quite useful for debug
, error
and some warning
messages.
from pycma.
logging
outputs to stderr
by default. I think it should be up to the user to decide if this is fine with him, or if he wants it in file, or in stdout
.; this is one of the reasons why this standard module is great IMHO.
However, the link you provided also states that print()
should be used to
Display console output for ordinary usage of a command line script or program
To do things pythonicly and neatly, I think it would be OK for "interactive shell usage" or a command-line interface to uses print
s. However, when used as a module from another script, pycma
should use warnings.warn
and logging
appropriately.
This is all nice talk, but I don't think I'll have the time or courage to do any of this so… thanks for the great package anyway!
from pycma.
FTR (note to self), cma.utilities.utils.print_warning
is used to print warnings. Hence only this function would need to be changed to become compliant in the warning case. EDIT: and the doctests need to be fixed.
from pycma.
Some bookkeeping:
evolution_strategy
prints the say hello message and inresults_pretty
logger
prints in some places where it should warn and while plottingprint_warning
callswarnings.warn
from pycma.
Related Issues (20)
- is lmm CMA-ES supported by the currrent version? HOT 1
- Could we use Constrains and Bounds together? HOT 2
- Add custom stopping conditions HOT 2
- Scipy.optimize.minimize implementation HOT 1
- Global seed in CMA-ES HOT 7
- Test output changes with Python installation
- An invariance of constraints handling
- Ask/Tell Interface Custom Number of Solutions Bug HOT 3
- conda build fails HOT 2
- lq-CMA-ES on a linear function HOT 1
- Given population size in plots HOT 1
- `seed=0` might not fix the optimisation result HOT 1
- Bounds seem to have strange effect on population mean HOT 4
- abscissa argument for plot
- Undesired CSA behavior with large population size HOT 3
- CPU bottleneck when benchmarking with large population size
- BoundTransform and BoundPenalty do not behave the same HOT 1
- Boundary transformations with 'ask and tell' interface. HOT 1
- CMA-ES in trajectories generation HOT 4
- How to manually set Covariance matrix 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 pycma.