Comments (4)
Thank you for the PR !
from framework.
I agree.
from framework.
I understand the confusion but all the code is based on one function that creates an object OneDimensionSolution with the decision vector and the objective vector and it is not easy to refactor this part.
I propose other changes :
- rename
def generate_solution(self, array, evaluate=True)
bydef create_solution_object(self, decision_vector, evaluate=True)
- rename the attribute
solution
bydecision_vector
as I said in the issue #44 - Specify in the documentation that we consider the Solution object as an object with a decision vector and an objective vector
The word "generate" is used for me in this context to designate the creation of the object and not the generation of the decision vector, so I understand that the documentation must be more precise
from framework.
The name create_solution_object(array)
suggests that the main function of that method is to perform the action
solution = OneDimensionalSolution(array)
Wrapping that in a separate function just makes it needlessly complicated.
In PR #58, I've implemented my proposed change of removing generate_solution()
and introducing evaluate()
, leaving out the change to generate_random_solution
. This turned out to be easier than I too had expected. You can see in the usage in the algorithm and tests that end result of the refactor outside of the Problem
classes is just a rename from generate_solution
to evaluate
🙂
I approve of your remaining suggestions, i.e., renaming Solution.solution
and further clarifying the documentation.
from framework.
Related Issues (20)
- [joss-reviews#2974] Paper: further clarify statement of need HOT 1
- [joss-reviews#2974] Paper: grammar/spelling HOT 3
- Confusing OneDimensionalSolution.__repr__ HOT 2
- [Documentation] Include example of how to use results HOT 1
- [Documentation] irrelevant __init__ instruction on documentation for e.g. aggregation functions HOT 4
- Add development requirements HOT 1
- [Documentation] Problems considered 'main component' of MOEA/D algorithm? HOT 2
- Remove docs/html folder from master branch? HOT 2
- [joss-reviews#2974] Ztd1 unfriendly error message HOT 1
- [joss-reviews#2974] Empty initializer HOT 1
- [joss-reviews#2974] Naming confusion HOT 3
- [joss-reviews#2974] Annotation errors HOT 11
- __init__.py HOT 1
- [joss-reviews#2974] Improve documentation/README for support HOT 1
- [joss-reviews#2974] Many component combinations not possible? HOT 3
- [joss-reviews#2974] Checkpoints used inconsistently HOT 3
- [joss-reviews#2974] Functionality HOT 7
- [joss-reviews#2974] Software paper HOT 12
- [joss-reviews#2974] Documentation HOT 18
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 framework.