Skip to content

Commit 509ce45

Browse files
committed
manifests addes
1 parent fac9a08 commit 509ce45

6 files changed

Lines changed: 108 additions & 2 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.venv/
1+
.venv/
2+
__pycache__/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"rmse": 2.1024083829536364,
3-
"mae": 1.5072424263746282,
3+
"mae": 1.5072424263746285,
44
"r2": 0.9988652238714363
55
}

deployment.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: my-mlapp
5+
labels:
6+
app: my-mlapp
7+
spec:
8+
replicas: 3
9+
selector:
10+
matchLabels:
11+
app: my-mlapp
12+
template:
13+
metadata:
14+
labels:
15+
app: my-mlapp
16+
spec:
17+
containers:
18+
- name: mlapp-container
19+
image: abeshith/mlapp:latest
20+
ports:
21+
- containerPort: 5000

logs/2025-07-12_16-02-51.log/2025-07-12_16-02-51.log

Whitespace-only changes.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
[2025-07-12 16:03:10,303] 1025 httpx - INFO - HTTP Request: GET https://dagshub.com/api/v1/user "HTTP/1.1 200 OK"
2+
[2025-07-12 16:03:10,533] 107 dagshub - INFO - Accessing as abheshith7
3+
[2025-07-12 16:03:10,990] 1025 httpx - INFO - HTTP Request: GET https://dagshub.com/api/v1/repos/abheshith7/MachineLearning_PipeLine "HTTP/1.1 200 OK"
4+
[2025-07-12 16:03:11,321] 1025 httpx - INFO - HTTP Request: GET https://dagshub.com/api/v1/user "HTTP/1.1 200 OK"
5+
[2025-07-12 16:03:11,321] 107 dagshub - INFO - Initialized MLflow to track repo "abheshith7/MachineLearning_PipeLine"
6+
[2025-07-12 16:03:11,321] 107 dagshub - INFO - Repository abheshith7/MachineLearning_PipeLine initialized!
7+
[2025-07-12 16:03:11,689] 1025 httpx - INFO - HTTP Request: GET https://dagshub.com/api/v1/repos/abheshith7/MachineLearning_PipeLine "HTTP/1.1 200 OK"
8+
[2025-07-12 16:03:11,689] 107 dagshub - INFO - Initialized MLflow to track repo "abheshith7/MachineLearning_PipeLine"
9+
[2025-07-12 16:03:11,689] 107 dagshub - INFO - Repository abheshith7/MachineLearning_PipeLine initialized!
10+
[2025-07-12 16:03:11,689] 25 src.mlpipeline.logging - INFO - >>>>>> stage Data Ingestion Stage started <<<<<<
11+
[2025-07-12 16:03:11,728] 25 src.mlpipeline.logging - INFO - yaml file: config\config.yaml loaded sucessfully
12+
[2025-07-12 16:03:11,738] 25 src.mlpipeline.logging - INFO - yaml file: config\params.yaml loaded sucessfully
13+
[2025-07-12 16:03:11,744] 25 src.mlpipeline.logging - INFO - yaml file: config\schema.yaml loaded sucessfully
14+
[2025-07-12 16:03:11,744] 44 src.mlpipeline.logging - INFO - Creating a Directory at: artifacts
15+
[2025-07-12 16:03:11,744] 44 src.mlpipeline.logging - INFO - Creating a Directory at: artifacts/data_ingestion
16+
[2025-07-12 16:03:11,744] 35 src.mlpipeline.logging - INFO - artifacts\data_ingestion\train.csv already exists. Skipping download.
17+
[2025-07-12 16:03:11,744] 44 src.mlpipeline.logging - INFO - No zip files found to extract.
18+
[2025-07-12 16:03:11,744] 28 src.mlpipeline.logging - INFO - >>>>>> stage Data Ingestion Stage completed <<<<<<
19+
[2025-07-12 16:03:11,744] 36 src.mlpipeline.logging - INFO - >>>>>> stage Data Validation Stage started <<<<<<
20+
[2025-07-12 16:03:11,744] 25 src.mlpipeline.logging - INFO - yaml file: config\config.yaml loaded sucessfully
21+
[2025-07-12 16:03:11,744] 25 src.mlpipeline.logging - INFO - yaml file: config\params.yaml loaded sucessfully
22+
[2025-07-12 16:03:11,758] 25 src.mlpipeline.logging - INFO - yaml file: config\schema.yaml loaded sucessfully
23+
[2025-07-12 16:03:11,758] 44 src.mlpipeline.logging - INFO - Creating a Directory at: artifacts
24+
[2025-07-12 16:03:11,758] 44 src.mlpipeline.logging - INFO - Creating a Directory at: artifacts/data_validation
25+
[2025-07-12 16:03:12,170] 23 src.mlpipeline.logging - INFO - Data columns: ['id', 'Sex', 'Age', 'Height', 'Weight', 'Duration', 'Heart_Rate', 'Body_Temp', 'Calories']
26+
[2025-07-12 16:03:12,170] 24 src.mlpipeline.logging - INFO - Schema columns: ['id', 'Sex', 'Age', 'Height', 'Weight', 'Duration', 'Heart_Rate', 'Body_Temp', 'Calories']
27+
[2025-07-12 16:03:12,170] 51 src.mlpipeline.logging - INFO - All columns validation passed!
28+
[2025-07-12 16:03:12,175] 39 src.mlpipeline.logging - INFO - >>>>>> stage Data Validation Stage completed <<<<<<
29+
[2025-07-12 16:03:12,175] 47 src.mlpipeline.logging - INFO - >>>>>> stage Data Transformation Stage started <<<<<<
30+
[2025-07-12 16:03:12,175] 27 src.mlpipeline.logging - INFO - Validation status: True
31+
[2025-07-12 16:03:12,175] 25 src.mlpipeline.logging - INFO - yaml file: config\config.yaml loaded sucessfully
32+
[2025-07-12 16:03:12,175] 25 src.mlpipeline.logging - INFO - yaml file: config\params.yaml loaded sucessfully
33+
[2025-07-12 16:03:12,175] 25 src.mlpipeline.logging - INFO - yaml file: config\schema.yaml loaded sucessfully
34+
[2025-07-12 16:03:12,175] 44 src.mlpipeline.logging - INFO - Creating a Directory at: artifacts
35+
[2025-07-12 16:03:12,175] 44 src.mlpipeline.logging - INFO - Creating a Directory at: artifacts/data_transformation
36+
[2025-07-12 16:03:12,522] 16 src.mlpipeline.logging - INFO - Original data loaded: (750000, 9)
37+
[2025-07-12 16:03:12,607] 20 src.mlpipeline.logging - INFO - Feature engineering completed: (750000, 13)
38+
[2025-07-12 16:03:12,869] 34 src.mlpipeline.logging - INFO - Starting statistical tests...
39+
[2025-07-12 16:03:13,173] 83 src.mlpipeline.logging - INFO - Statistical test results saved to artifacts\data_transformation\statstestresults.txt
40+
[2025-07-12 16:03:17,789] 33 src.mlpipeline.logging - INFO - Train and test data split completed.
41+
[2025-07-12 16:03:17,789] 34 src.mlpipeline.logging - INFO - Train data shape: (600000, 13)
42+
[2025-07-12 16:03:17,789] 35 src.mlpipeline.logging - INFO - Test data shape: (150000, 13)
43+
[2025-07-12 16:03:17,793] 50 src.mlpipeline.logging - INFO - >>>>>> stage Data Transformation Stage completed <<<<<<
44+
[2025-07-12 16:03:17,793] 58 src.mlpipeline.logging - INFO - >>>>>> stage Model Training Stage started <<<<<<
45+
[2025-07-12 16:03:17,793] 25 src.mlpipeline.logging - INFO - yaml file: config\config.yaml loaded sucessfully
46+
[2025-07-12 16:03:17,793] 25 src.mlpipeline.logging - INFO - yaml file: config\params.yaml loaded sucessfully
47+
[2025-07-12 16:03:17,804] 25 src.mlpipeline.logging - INFO - yaml file: config\schema.yaml loaded sucessfully
48+
[2025-07-12 16:03:17,804] 44 src.mlpipeline.logging - INFO - Creating a Directory at: artifacts
49+
[2025-07-12 16:03:17,805] 44 src.mlpipeline.logging - INFO - Creating a Directory at: artifacts/model_trainer
50+
[2025-07-12 16:03:17,805] 15 src.mlpipeline.logging - INFO - Starting model training...
51+
[2025-07-12 16:03:19,539] 21 src.mlpipeline.logging - INFO - Training data shape: (600000, 13)
52+
[2025-07-12 16:03:19,539] 22 src.mlpipeline.logging - INFO - Test data shape: (150000, 13)
53+
[2025-07-12 16:03:19,556] 33 src.mlpipeline.logging - INFO - Features used: ['Sex', 'Age', 'Height', 'Weight', 'Duration', 'Heart_Rate', 'Body_Temp', 'BMI', 'Calories_per_min', 'Age_Weight', 'Heart_Temp']
54+
[2025-07-12 16:03:19,556] 34 src.mlpipeline.logging - INFO - Target: Calories
55+
[2025-07-12 16:03:19,556] 44 src.mlpipeline.logging - INFO - Training RandomForest model...
56+
[2025-07-12 16:04:01,939] 56 src.mlpipeline.logging - INFO - Model training completed!
57+
[2025-07-12 16:04:01,939] 57 src.mlpipeline.logging - INFO - Test RMSE: 2.1024
58+
[2025-07-12 16:04:01,939] 58 src.mlpipeline.logging - INFO - Test R2 Score: 0.9989
59+
[2025-07-12 16:04:02,014] 67 src.mlpipeline.logging - INFO - Model saved to: artifacts\model_trainer\model.joblib
60+
[2025-07-12 16:04:02,033] 61 src.mlpipeline.logging - INFO - >>>>>> stage Model Training Stage completed <<<<<<
61+
[2025-07-12 16:04:02,033] 69 src.mlpipeline.logging - INFO - >>>>>> stage Model Evaluation Stage started <<<<<<
62+
[2025-07-12 16:04:02,035] 25 src.mlpipeline.logging - INFO - yaml file: config\config.yaml loaded sucessfully
63+
[2025-07-12 16:04:02,035] 25 src.mlpipeline.logging - INFO - yaml file: config\params.yaml loaded sucessfully
64+
[2025-07-12 16:04:02,037] 25 src.mlpipeline.logging - INFO - yaml file: config\schema.yaml loaded sucessfully
65+
[2025-07-12 16:04:02,037] 44 src.mlpipeline.logging - INFO - Creating a Directory at: artifacts
66+
[2025-07-12 16:04:02,037] 44 src.mlpipeline.logging - INFO - Creating a Directory at: artifacts/model_evaluation
67+
[2025-07-12 16:04:06,829] 58 src.mlpipeline.logging - INFO - json file saved at: artifacts\model_evaluation\metrics.json
68+
[2025-07-12 16:04:07,544] 81 src.mlpipeline.logging - WARNING - Failed to log model to MLflow: INTERNAL_ERROR: Response: {'error': 'unsupported endpoint, please contact support@dagshub.com'}
69+
[2025-07-12 16:04:07,553] 85 src.mlpipeline.logging - INFO - Model evaluation completed successfully
70+
[2025-07-12 16:04:08,260] 72 src.mlpipeline.logging - INFO - >>>>>> stage Model Evaluation Stage completed <<<<<<

service.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: mlapp-service
5+
spec:
6+
type: NodePort
7+
selector:
8+
app: my-mlapp
9+
ports:
10+
- port: 80
11+
12+
targetPort: 5000
13+
14+
nodePort: 30007

0 commit comments

Comments
 (0)