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 streamlit as st | |
selected_commit = st.selectbox( | |
"Choose your commit", | |
[commit for commit in MODELS_COMMITS], | |
format_func=lambda commit: f"{commit.hexsha[:6]} - {commit.message} - {commit.committed_datetime}", | |
) | |
st.write("Selected Commit", selected_commit) |
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 git | |
REPO = git.Repo(".") | |
MODELS_COMMITS = list(REPO.iter_commits(paths="dvc.lock")) |
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
stages: | |
download_dataset: ... | |
split_dataset: ... | |
train: ... | |
evaluate: | |
cmd: python scripts/evaluate.py | |
deps: | |
- scripts/evaluate.py | |
- data/dataset/test |
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
stages: | |
download_dataset: ... | |
split_dataset: ... | |
train: ... | |
evaluate: | |
cmd: python scripts/evaluate.py | |
deps: | |
- scripts/evaluate.py | |
- data/dataset/test |
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
stages: | |
download_dataset: ... | |
split_dataset: ... | |
train: | |
cmd: python scripts/train.py | |
deps: | |
- scripts/train.py | |
- data/dataset/train | |
- data/dataset/val |
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
stages: | |
download_dataset: ... | |
split_dataset: | |
cmd: python scripts/split_dataset.py | |
deps: | |
- scripts/split_dataset.py | |
- data/raw | |
outs: | |
- data/dataset/train |
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
stages: | |
download_dataset: | |
cmd: ( | |
wget https://storage.googleapis.com/mledu-datasets/cats_and_dogs_filtered.zip | |
-O cats_and_dogs_filtered.zip && | |
unzip cats_and_dogs_filtered.zip -d data/raw && | |
rm cats_and_dogs_filtered.zip | |
) | |
outs: | |
- data/raw |
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
const exec = require('child_process').exec; | |
class CheckGitBranchBeforeDeploy { | |
constructor (serverless, options) { | |
this.commands = { | |
deploy: { | |
lifecycleEvents: [ | |
'resources', | |
] |
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 mongots | |
from datetime import datetime | |
from csv import DictReader | |
temperature_collection = mongots.MongoTSClient().ClimaticDataDb.temperatures | |
with open('./weather_data.csv') as file: | |
reader = DictReader(file, delimiter=';') | |
failed = 0 |
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
``` | |
| datetime | city | temperature | | |
|---------------------|-------|-------------| | |
| 1996-07-01 02:00:00 | paris | 15.0 | | |
| | | | | |
| | | | | |
``` |