-
Notifications
You must be signed in to change notification settings - Fork 88
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
1027 remove separation on primary secondary pipeline nodes #1031
1027 remove separation on primary secondary pipeline nodes #1031
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1031 +/- ##
==========================================
- Coverage 87.80% 87.64% -0.17%
==========================================
Files 208 210 +2
Lines 13970 14091 +121
==========================================
+ Hits 12267 12350 +83
- Misses 1703 1741 +38 ☔ View full report in Codecov by Sentry. |
53c1972
to
08cc2ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Прекрасная работа!
Скажи, а как будет вести себя композер с нодами-источниками данных в мультимодальных пайплайнах?
fedot/core/optimisers/gp_comp/pipeline_composer_requirements.py
Outdated
Show resolved
Hide resolved
@@ -295,13 +283,6 @@ def test_pipeline_with_primary_nodes_correct(): | |||
assert has_primary_nodes(pipeline) | |||
|
|||
|
|||
def test_pipeline_without_primary_nodes_raise_exception(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Мне кажется, подобный тест будет актуален для мультимодальных пайплайнов, т.к. там есть смысл в primary node: через неё подаются данные в пайплайн (нода data_source_table
и т.п.)
Мб его чуточку поменять?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поменять определенно стоит, потому что для обычных пайплайнов отсутствие primary ноды тоже не норма, а этот тест это покрывал
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Так вроде с новым подходом вроде вообще нет такой ситуации, как "отсутствие primary ноды". Можно только проверять, что конкретно находится в начальных PipelineNode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
кажется, что теперь отсутствие primary PipelineNode
означает, что в пайплайне есть цикл, а это проверяется тестом ниже. убранный тест же покрывал именно проверку типов, а не по факту наличие/отсутствие чего-либо в nodes_from
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Имела в виду наличие is_primary хотя бы в одной ноде, но как хотите
|
||
|
||
PrimaryNode = PipelineNode | ||
SecondaryNode = PipelineNode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А это для чего здесь добавлено?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -295,13 +283,6 @@ def test_pipeline_with_primary_nodes_correct(): | |||
assert has_primary_nodes(pipeline) | |||
|
|||
|
|||
def test_pipeline_without_primary_nodes_raise_exception(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поменять определенно стоит, потому что для обычных пайплайнов отсутствие primary ноды тоже не норма, а этот тест это покрывал
5d1f445
to
5fe9a25
Compare
There is no more separation between
PrimaryNode
andSecondaryNode
-- onlyPipelineNode
. For nowPrimaryNode
andSecondaryNode
are just the same asPipelineNode
for backward compatibility.Determinion of node type can be done with
is_primary
method.