Are you sure you want to delete this access key?
La carpeta versioning_dagshub/
contiene scripts Python para gestionar el versionado del proyecto IntelligentCreditScoringPipeline con Git, DVC y DAGsHub. ¡Estos scripts te permiten crear, configurar y actualizar tu repositorio como todo un experto! 🚀
Los scripts te ayudan a:
Cada script se ejecuta desde la raíz del proyecto (G:\MLOps Proyecto End_to_End\IntelligentCreditScoringPipeline
) y usa config/versioning_dagshub.yaml
para configuraciones. Un archivo history.txt
registra las versiones. 📜
versioning_dagshub.yaml
✨Crea config/versioning_dagshub.yaml
con tus credenciales. Es confidencial porque incluye el token de DAGsHub, así que está excluido vía .gitignore
.
Ejemplo:
dagshub:
username: "JorgeDataScientist"
token: "your_dagshub_token"
repo_name: "MLOps_CreditScore"
git_url: "https://dagshub.com/JorgeDataScientist/MLOps_CreditScore.git"
dvc_s3_url: "s3://dvc"
dvc_endpoint_url: "https://dagshub.com/JorgeDataScientist/MLOps_CreditScore.s3"
description: "Proyecto MLOps para analizar y predecir puntajes crediticios"
git:
email: "jorgeluisdatascientist@gmail.com"
gitignore:
- "env_pipeline/"
- "mlruns/"
- ".vscode/"
- ".pytest_cache"
- "__pycache__"
- "*.log"
- "*.pyc"
- ".ipynb_checkpoints/"
- "config/versioning_dagshub.yaml"
- "data/"
- "models/"
dvc:
directories:
- "data"
- "models"
Copia este ejemplo, ajusta los valores, y guárdalo en config/versioning_dagshub.yaml
.
Usa create_repo.py
para crear el repositorio remoto.
python versioning_dagshub\create_repo.py
JorgeDataScientist/MLOps_CreditScore
).Configura Git localmente con init_git.py
.
python versioning_dagshub\init_git.py
.gitignore
, y hace un commit inicial.Prepara DVC con init_dvc.py
.
python versioning_dagshub\init_dvc.py
data/
y models/
, y commitea archivos .dvc
en Git.Conecta el proyecto con setup_dagshub.py
.
python versioning_dagshub\setup_dagshub.py
core.autostage
, commitea la configuración, y sube a DAGsHub.Usa push_changes.py
para actualizar el repositorio.
python versioning_dagshub\push_changes.py
history.txt
.history.txt
🕰️Cada ejecución de push_changes.py
añade una línea a versioning_dagshub/history.txt
.
Ejemplo:
2025-04-11 10:15:30 - Commit: "Hola Mundo!" - Hash: 5ce1226 - Creador: Jorge Luis Garcia - Email: jorgeluisdatascientist@gmail.com - Username DAGsHub: JorgeDataScientist
(env_pipeline)
. 🌳pip install dvc[s3]
config/versioning_dagshub.yaml
si hay errores. 🔍Jorge Luis Garciajorgeluisdatascientist@gmail.comDAGsHub: JorgeDataScientist 🌟
Press p or to see the previous file or, n or to see the next file
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?