From b957f81290295e5f8c3f056d66cf58e141b91425 Mon Sep 17 00:00:00 2001 From: "mariacarmina.cretu" Date: Wed, 14 Jun 2023 14:48:30 +0000 Subject: [PATCH] GITBOOK-514: change request with no subject merged in GitBook --- developers/ocean.py/README.md | 2 +- developers/ocean.py/publish-flow.md | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/developers/ocean.py/README.md b/developers/ocean.py/README.md index 0c8db83d..ef1b7fee 100644 --- a/developers/ocean.py/README.md +++ b/developers/ocean.py/README.md @@ -27,7 +27,7 @@ Now, let's take a closer look at those amazing branches: 5. **Model Training Branch**: This branch employs machine learning techniques to train models using the transformed data. It collaborates with the Ocean smart contracts to optimize the training process. 6. **Model Evaluation Branch**: It's time for a performance assessment! This branch thoroughly examines the trained models, assessing their accuracy, robustness, and compliance with predefined metrics. It ensures that our models are as reliable as a trustworthy companion. 7. **Model Deployment Branch**: Now, it's time to set our trained models free into the ocean of opportunities! This branch interacts with the Ocean smart contracts to deploy the models, making them accessible for utilization within the Ocean ecosystem. -8. **Model Monitoring Branch**: This branch monitors their behavior, tracks their performance, and detects any anomalies that may arise. It collaborates with the Ocean smart contracts to ensure the models swim smoothly. +8. **Model Monitoring Branch**: This branch monitors the received algorithm result logs from Compute-to-Data engine, tracking their performance. So, in the realm of ocean.py's integration with Ocean Protocol's smart contracts, the eight versatile branches embark on an exciting journey, discovering, accessing, cleaning, transforming, training, evaluating, deploying, and monitoring data and models. Together, they form a powerful team, navigating the depths of the Ocean ecosystem. 🌊🐙 diff --git a/developers/ocean.py/publish-flow.md b/developers/ocean.py/publish-flow.md index 37e0f5de..6996b004 100644 --- a/developers/ocean.py/publish-flow.md +++ b/developers/ocean.py/publish-flow.md @@ -43,7 +43,11 @@ As you may want to explore more the DDO specs, structure & meaning, we invite y #### Publishing Alternatives -Here's an example similar to the `create()` step above, but exposes more fine-grained control. +Here's an example similar to the `create()` step above, but exposes more parameters to interact with, which requires deeper knowledge about ocean.py usage. The below example points out the creation of an asset and attempts to create a datatoken as well, with the files specified in `DatatokenArguments` class. You have the freedom to customize the data NFT, datatoken and also fields from DDO, such as: + +* services +* metadata +* credentials In the same python console: @@ -81,11 +85,11 @@ The DDO is stored on-chain. It's encrypted and compressed by default. Therefore You can control this during `create()`: -* To disable encryption, use `ocean.assets.create(..., encrypt_flag=False)`. -* To disable compression, use `ocean.assets.create(..., compress_flag=False)`. -* To disable both, use `ocean.assetspy.create(..., encrypt_flag=False, compress_flag=False)`. +* To disable encryption, use [`ocean.assets.create(..., encrypt_flag=False)`](https://github.com/oceanprotocol/ocean.py/blob/main/ocean\_lib/ocean/ocean\_assets.py#L425). +* To disable compression, use [`ocean.assets.create(..., compress_flag=False)`](https://github.com/oceanprotocol/ocean.py/blob/main/ocean\_lib/ocean/ocean\_assets.py#L426). +* To disable both, use [`ocean.assetspy.create(..., encrypt_flag=False, compress_flag=False)`](https://github.com/oceanprotocol/ocean.py/blob/main/ocean\_lib/ocean/ocean\_assets.py#LL425C8-L426C46). -#### Create _just_ a data NFT +#### Create a data NFT Calling `create()` like above generates a data NFT, a datatoken for that NFT, and a ddo. This is the most common case. However, sometimes you may want _just_ the data NFT, e.g. if using a data NFT as a simple key-value store. Here's how: