Skip to content

Instantly share code, notes, and snippets.

View BexTuychiev's full-sized avatar
🏠
Working from home

bexgboost BexTuychiev

🏠
Working from home
View GitHub Profile
$ dvc add models dvclive
$ git commit -am "exp: CNN All layers, 0.992 val accuracy"
$ git add - all
$ git commit -m "Update train.py to use a DVCLive logger"
$ git tag cnn-all-layers
$ python src/train.py
# Set the parameters
params = {
"image_width": 30,
"image_height": 30,
"batch_size": 32,
"learning_rate": 0.001,
"n_epochs": 10
}
logger.log_params(params)
from dvclive import Live
# Set up the logger
logger = Live(save_dvc_exp=True)
$ dvc add dvclive models
$ git add - all
$ git commit -m "exp: Run the baseline experiment"
import …
from dvclive.keras import DVCLiveCallback
# The rest of the script
# Line 87
callbacks = [
…,
DVCLiveCallback(save_dvc_exp=True)
$ git add - all
$ git commit -m "Track the dataset with DVC"
$ dvc init
$ dvc get https://dagshub.com/BexTuychiev/dvc-tutorial data
$ conda create -n dvc-tutorial python==3.9 -y
$ conda activate dvc-tutorial
$ python -r requirements.txt
$ git clone - branch experiments https://github.com/YourUsername/dvc-tutorial.git dvc-tutorial
$ cd dvc-tutorial
$ code .