Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encodings for graphs #129

Merged
merged 23 commits into from
Jul 5, 2023
Merged

Encodings for graphs #129

merged 23 commits into from
Jul 5, 2023

Conversation

maypink
Copy link
Collaborator

@maypink maypink commented Jun 19, 2023

Encodings for graphs with the use of nodes labels were added.

@maypink maypink added enhancement New feature or request adaptive Related to R&D of Adaptive features of the algorithm labels Jun 19, 2023
@maypink maypink linked an issue Jun 19, 2023 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Jun 19, 2023

Codecov Report

Merging #129 (ad31fda) into main (d096fc8) will increase coverage by 0.22%.
The diff coverage is 72.58%.

@@            Coverage Diff             @@
##             main     #129      +/-   ##
==========================================
+ Coverage   72.22%   72.45%   +0.22%     
==========================================
  Files         127      128       +1     
  Lines        7284     7377      +93     
==========================================
+ Hits         5261     5345      +84     
- Misses       2023     2032       +9     
Impacted Files Coverage Δ
...misers/adaptive/mab_agents/contextual_mab_agent.py 32.20% <25.00%> (+1.16%) ⬆️
...olem/core/optimisers/genetic/operators/mutation.py 90.62% <66.66%> (ø)
golem/core/optimisers/adaptive/context_agents.py 82.25% <79.59%> (+18.62%) ⬆️
golem/core/optimisers/opt_node_factory.py 88.46% <100.00%> (ø)

... and 12 files with indirect coverage changes

@aim-pep8-bot
Copy link
Collaborator

aim-pep8-bot commented Jun 19, 2023

Hello @maypink! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2023-07-05 13:15:32 UTC

@maypink maypink marked this pull request as ready for review June 26, 2023 10:01
@maypink maypink requested a review from gkirgizov June 26, 2023 10:03
Copy link
Collaborator

@gkirgizov gkirgizov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Пробовала что-нибудь запускать с этими способами кодирования?

experiments/mab/mab_synthetic_experiment_helper.py Outdated Show resolved Hide resolved
for graph in initial_graphs:
opt_graph = BaseNetworkxAdapter().adapt(item=graph)
for node in opt_graph.nodes:
node.content['name'] = 'x'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вот, кажется, такие штуки тяжело будет ловить, тяжело избегать и невозможно запретить при учете изменений с кэшированием descriptive_id

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

как вариант -- добавить флаг в descriptive_id, чтобы его можно было пересчитать принудительно. ну и оставить там предупреждение о такого рода действиях
здесь так сделано из-за того, что при адаптации в имена нод ставится их uid

experiments/mab/mab_synthetic_experiment_helper.py Outdated Show resolved Hide resolved
golem/core/optimisers/adaptive/context_agents.py Outdated Show resolved Hide resolved
golem/core/optimisers/adaptive/context_agents.py Outdated Show resolved Hide resolved
@maypink
Copy link
Collaborator Author

maypink commented Jun 27, 2023

Пробовала что-нибудь запускать с этими способами кодирования?

запускала на синтетическом примере, но скорее для проверки работоспособности, а не сравнения полученных метрик

@maypink maypink force-pushed the 124-add-various-encodings-for-graphs branch from e844604 to 6cb4ab7 Compare July 5, 2023 13:15
@maypink maypink merged commit 4c58ded into main Jul 5, 2023
@maypink maypink deleted the 124-add-various-encodings-for-graphs branch July 5, 2023 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adaptive Related to R&D of Adaptive features of the algorithm enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add various encodings for graphs
4 participants