Skip to content

Commit bf40bc1

Browse files
committed
CICD run - 4
1 parent 4672491 commit bf40bc1

2 files changed

Lines changed: 25 additions & 25 deletions

File tree

sentiment_classification/modeling/model_evaluation.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@
1414
# # Below code block is for production use
1515
# # -------------------------------------------------------------------------------------
1616
# # Set up DagsHub credentials for MLflow tracking
17-
# dagshub_token = os.getenv("CAPSTONE_TEST")
18-
# if not dagshub_token:
19-
# raise EnvironmentError("CAPSTONE_TEST environment variable is not set")
17+
dagshub_token = os.getenv("CAPSTONE_TEST")
18+
if not dagshub_token:
19+
raise EnvironmentError("CAPSTONE_TEST environment variable is not set")
2020

21-
# os.environ["MLFLOW_TRACKING_USERNAME"] = dagshub_token
22-
# os.environ["MLFLOW_TRACKING_PASSWORD"] = dagshub_token
21+
os.environ["MLFLOW_TRACKING_USERNAME"] = dagshub_token
22+
os.environ["MLFLOW_TRACKING_PASSWORD"] = dagshub_token
2323

24-
# dagshub_url = "https://dagshub.com"
25-
# repo_owner = "vikashdas770"
26-
# repo_name = "YT-Capstone-Project"
24+
dagshub_url = "https://dagshub.com"
25+
repo_owner = "CodeBy-HP"
26+
repo_name = "Sentiment-Classification-Mlflow-DVC"
2727

28-
# # Set up MLflow tracking URI
29-
# mlflow.set_tracking_uri(f'{dagshub_url}/{repo_owner}/{repo_name}.mlflow')
28+
# Set up MLflow tracking URI
29+
mlflow.set_tracking_uri(f'{dagshub_url}/{repo_owner}/{repo_name}.mlflow')
3030
# # -------------------------------------------------------------------------------------
3131

3232
# Below code block is for local use
3333
# -------------------------------------------------------------------------------------
34-
mlflow.set_tracking_uri('https://dagshub.com/CodeBy-HP/Sentiment-Classification-Mlflow-DVC.mlflow')
35-
dagshub.init(repo_owner='CodeBy-HP', repo_name='Sentiment-Classification-Mlflow-DVC', mlflow=True)
34+
# mlflow.set_tracking_uri('https://dagshub.com/CodeBy-HP/Sentiment-Classification-Mlflow-DVC.mlflow')
35+
# dagshub.init(repo_owner='CodeBy-HP', repo_name='Sentiment-Classification-Mlflow-DVC', mlflow=True)
3636
# -------------------------------------------------------------------------------------
3737

3838

sentiment_classification/modeling/register_model.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@
1414
# Below code block is for production use
1515
# -------------------------------------------------------------------------------------
1616
# Set up DagsHub credentials for MLflow tracking
17-
# dagshub_token = os.getenv("CAPSTONE_TEST")
18-
# if not dagshub_token:
19-
# raise EnvironmentError("CAPSTONE_TEST environment variable is not set")
17+
dagshub_token = os.getenv("CAPSTONE_TEST")
18+
if not dagshub_token:
19+
raise EnvironmentError("CAPSTONE_TEST environment variable is not set")
2020

21-
# os.environ["MLFLOW_TRACKING_USERNAME"] = dagshub_token
22-
# os.environ["MLFLOW_TRACKING_PASSWORD"] = dagshub_token
21+
os.environ["MLFLOW_TRACKING_USERNAME"] = dagshub_token
22+
os.environ["MLFLOW_TRACKING_PASSWORD"] = dagshub_token
2323

24-
# dagshub_url = "https://dagshub.com"
25-
# repo_owner = "vikashdas770"
26-
# repo_name = "YT-Capstone-Project"
27-
# # Set up MLflow tracking URI
28-
# mlflow.set_tracking_uri(f'{dagshub_url}/{repo_owner}/{repo_name}.mlflow')
29-
# -------------------------------------------------------------------------------------
24+
dagshub_url = "https://dagshub.com"
25+
repo_owner = "CodeBy-HP"
26+
repo_name = "Sentiment-Classification-Mlflow-DVC"
3027

28+
# Set up MLflow tracking URI
29+
mlflow.set_tracking_uri(f'{dagshub_url}/{repo_owner}/{repo_name}.mlflow')
30+
# -------------------------------------------------------------------------------------
3131

3232
# Below code block is for local use
3333
# -------------------------------------------------------------------------------------
34-
mlflow.set_tracking_uri('https://dagshub.com/CodeBy-HP/Sentiment-Classification-Mlflow-DVC.mlflow')
35-
dagshub.init(repo_owner='CodeBy-HP', repo_name='Sentiment-Classification-Mlflow-DVC', mlflow=True)
34+
# mlflow.set_tracking_uri('https://dagshub.com/CodeBy-HP/Sentiment-Classification-Mlflow-DVC.mlflow')
35+
# dagshub.init(repo_owner='CodeBy-HP', repo_name='Sentiment-Classification-Mlflow-DVC', mlflow=True)
3636
# -------------------------------------------------------------------------------------
3737

3838
def load_model_info(file_path: str) -> dict:

0 commit comments

Comments
 (0)