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
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/advanced/atomized_model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

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


pipeline = Pipeline()
nested_pipeline = Pipeline()
Expand Down
Loading