File size: 965 Bytes
19d70f4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a7d80f2
 
 
 
 
 
 
19d70f4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
from dataclasses import dataclass
from pathlib import Path
from typing import Dict, Any


@dataclass
class DataIngestionArtifact:
    data_file_path: Path
    is_ingested: bool
    message: str


@dataclass
class DataValidationArtifact:
    validation_status: bool
    message: str
    schema_file_path: Path


@dataclass
class DataTransformationArtifact:
    train_file_path: Path
    test_file_path: Path
    is_transformed: bool
    message: str


@dataclass
class FeatureEngineeringArtifact:
    train_features_path: Path
    test_features_path: Path
    is_engineered: bool
    message: str


@dataclass
class ModelTrainerArtifact:
    model_path: Path
    is_trained: bool
    message: str
    train_metrics: Dict[str, float]


@dataclass
class ModelEvaluationArtifact:
    is_model_accepted: bool
    evaluation_metrics: Dict[str, float]
    message: str


@dataclass
class ModelPusherArtifact:
    pushed_model_path: str
    is_pushed: bool
    message: str