This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ dvc add models dvclive | |
$ git commit -am "exp: CNN All layers, 0.992 val accuracy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git add - all | |
$ git commit -m "Update train.py to use a DVCLive logger" | |
$ git tag cnn-all-layers | |
$ python src/train.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set the parameters | |
params = { | |
"image_width": 30, | |
"image_height": 30, | |
"batch_size": 32, | |
"learning_rate": 0.001, | |
"n_epochs": 10 | |
} | |
logger.log_params(params) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dvclive import Live | |
… | |
# Set up the logger | |
logger = Live(save_dvc_exp=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ dvc add dvclive models | |
$ git add - all | |
$ git commit -m "exp: Run the baseline experiment" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import … | |
from dvclive.keras import DVCLiveCallback | |
# The rest of the script | |
… | |
# Line 87 | |
callbacks = [ | |
…, | |
DVCLiveCallback(save_dvc_exp=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git add - all | |
$ git commit -m "Track the dataset with DVC" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ dvc init | |
$ dvc get https://dagshub.com/BexTuychiev/dvc-tutorial data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ conda create -n dvc-tutorial python==3.9 -y | |
$ conda activate dvc-tutorial | |
$ python -r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone - branch experiments https://github.com/YourUsername/dvc-tutorial.git dvc-tutorial | |
$ cd dvc-tutorial | |
$ code . |