mirror of
https://github.com/clearml/clearml-docs
synced 2025-05-17 10:53:52 +00:00
Small edits (#870)
This commit is contained in:
parent
2a92231e82
commit
b08ae93e9f
@ -7,7 +7,7 @@ In this example we'll create a simple dataset and demonstrate basic actions on i
|
|||||||
## Prerequisites
|
## Prerequisites
|
||||||
1. First, make sure that you have cloned the [clearml](https://github.com/allegroai/clearml) repository. It contains all
|
1. First, make sure that you have cloned the [clearml](https://github.com/allegroai/clearml) repository. It contains all
|
||||||
the needed files.
|
the needed files.
|
||||||
1. Open terminal and change directory to the cloned repository's examples folder
|
1. Open terminal and change directory to the cloned repository's examples folder:
|
||||||
|
|
||||||
```
|
```
|
||||||
cd clearml/examples/reporting
|
cd clearml/examples/reporting
|
||||||
@ -140,7 +140,7 @@ Using ClearML Data, you can create child datasets that inherit the content of ot
|
|||||||
1 files removed
|
1 files removed
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Close and finalize the dataset
|
1. Close and finalize the dataset:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
clearml-data close
|
clearml-data close
|
||||||
|
@ -241,7 +241,8 @@ To replace the URL of each model, execute the following commands:
|
|||||||
sudo docker exec -it clearml-mongo /bin/bash
|
sudo docker exec -it clearml-mongo /bin/bash
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Create the following script inside the Docker shell (as well as the URL protocol if you aren't using `s3`):
|
1. Create the following script inside the Docker shell (as well as the URL protocol if you aren't using `s3`).
|
||||||
|
Make sure to replace `<old-bucket-name>` and `<new-bucket-name>`.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat <<EOT >> script.js
|
cat <<EOT >> script.js
|
||||||
@ -250,7 +251,6 @@ To replace the URL of each model, execute the following commands:
|
|||||||
db.model.save(e);});
|
db.model.save(e);});
|
||||||
EOT
|
EOT
|
||||||
```
|
```
|
||||||
Make sure to replace `<old-bucket-name>` and `<new-bucket-name>`.
|
|
||||||
|
|
||||||
1. Run the script against the backend DB:
|
1. Run the script against the backend DB:
|
||||||
|
|
||||||
@ -273,7 +273,7 @@ To fix this, the registered URL of each model needs to be replaced with its curr
|
|||||||
sudo docker exec -it clearml-mongo /bin/bash
|
sudo docker exec -it clearml-mongo /bin/bash
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Create the following script inside the Docker shell:
|
1. Create the following script inside the Docker shell (Make sure to replace `<old-bucket-name>` and `<new-bucket-name>`, as well as the URL protocol prefixes if you aren't using S3):
|
||||||
```bash
|
```bash
|
||||||
cat <<EOT >> script.js
|
cat <<EOT >> script.js
|
||||||
db.model.find({uri:{$regex:/^s3/}}).forEach(function(e,i) {
|
db.model.find({uri:{$regex:/^s3/}}).forEach(function(e,i) {
|
||||||
@ -281,7 +281,6 @@ To fix this, the registered URL of each model needs to be replaced with its curr
|
|||||||
db.model.save(e);});
|
db.model.save(e);});
|
||||||
EOT
|
EOT
|
||||||
```
|
```
|
||||||
Make sure to replace `<old-bucket-name>` and `<new-bucket-name>`, as well as the URL protocol prefixes if you aren't using S3.
|
|
||||||
1. Run the script against the backend DB:
|
1. Run the script against the backend DB:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -94,27 +94,27 @@ myDataset = DatasetVersion.get_current(dataset_name='myDataset')
|
|||||||
|
|
||||||
### Deleting Datasets
|
### Deleting Datasets
|
||||||
|
|
||||||
Use the [`Dataset.delete`](../references/hyperdataset/hyperdataset.md#datasetdelete) method to delete a Dataset.
|
Use the [`Dataset.delete`](../references/hyperdataset/hyperdataset.md#datasetdelete) class method to delete a Dataset:
|
||||||
|
|
||||||
Delete an empty Dataset (no versions).
|
* Delete an empty Dataset (no versions):
|
||||||
|
|
||||||
```python
|
```python
|
||||||
Dataset.delete(dataset_name='MyDataset', delete_all_versions=False, force=False)
|
Dataset.delete(dataset_name='MyDataset', delete_all_versions=False, force=False)
|
||||||
```
|
```
|
||||||
|
|
||||||
Delete a Dataset containing only versions whose status is *Draft*.
|
* Delete a Dataset containing only versions whose status is *Draft*:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
Dataset.delete(dataset_name='MyDataset', delete_all_versions=True, force=False)
|
Dataset.delete(dataset_name='MyDataset', delete_all_versions=True, force=False)
|
||||||
```
|
```
|
||||||
|
|
||||||
Delete a Dataset even if it contains versions whose status is *Published*.
|
* Delete a Dataset even if it contains versions whose status is *Published*:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
Dataset.delete(dataset_name='MyDataset', delete_all_versions=True, force=True)
|
Dataset.delete(dataset_name='MyDataset', delete_all_versions=True, force=True)
|
||||||
```
|
```
|
||||||
|
|
||||||
Delete a Dataset and the sources associated with its deleted frames:
|
* Delete a Dataset and the sources associated with its deleted frames:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
Dataset.delete(
|
Dataset.delete(
|
||||||
|
Loading…
Reference in New Issue
Block a user