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

Docs fix for atomized model #1197

Merged
merged 2 commits into from
Nov 14, 2023
Merged

Docs fix for atomized model #1197

merged 2 commits into from
Nov 14, 2023

Conversation

nicl-nno
Copy link
Collaborator

Микрофикс примера в докуменации

Copy link

codecov bot commented Nov 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (70fc033) 79.49% compared to head (88dee36) 79.41%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1197      +/-   ##
==========================================
- Coverage   79.49%   79.41%   -0.08%     
==========================================
  Files         145      145              
  Lines       10022    10022              
==========================================
- Hits         7967     7959       -8     
- Misses       2055     2063       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -13,7 +13,7 @@ pipeline in the AtomizedModel class and all the functionality will be saved.
.. code-block:: python

from fedot.core.pipelines.pipeline import Pipeline
from fedot.core.models.atomized_model import AtomizedModel
from fedot.core.operations.atomized_model import AtomizedModel
Copy link
Collaborator

Choose a reason for hiding this comment

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

Тут нужно скорее так написать

from fedot.core.pipelines.node import PipelineNode
from fedot.core.pipelines.pipeline import Pipeline
from fedot.core.operations.atomized_model import AtomizedModel

pipeline = Pipeline()
nested_pipeline = Pipeline(PipelineNode('ridge'))
atomized_model = PipelineNode(AtomizedModel(nested_pipeline))
pipeline.add_node(atomized_model)

nested_pipeline не должен быть пустым, а AtomizedModel нужно положить в ноду, так как это Operation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Справедливо, обновил.

@nicl-nno nicl-nno merged commit 8b16a24 into master Nov 14, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants