-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,5 @@ boto3==1.24.65 | |
pyyaml==5.3.1 | ||
from-root==1.0.2 | ||
awscli==1.25.70 | ||
evidently==0.4.16 | ||
-e . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import os | ||
import sys | ||
import json | ||
|
||
import pandas as pd | ||
from evidently.model_profile import Profile | ||
from evidently.model_profile.sections import DataDriftProfileSection | ||
|
||
|
||
|
||
from forestCover.entity.config_entity import DataValidationConfig | ||
from forestCover.entity.artifacts_entity import DataValidationArtifact | ||
from forestCover.constants import ARTIFACT_DIR, DATA_VALIDATION_DIR_NAME, DATA_VALIDATION_DIR_NAME_DRIFT_REPORT_NAME | ||
|
||
from forestCover.utils.common import read_yaml | ||
from forestCover.logger import logging | ||
from forestCover.exception import CustomException | ||
|
||
class DataValidation: | ||
pass |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
import os | ||
from from_root import from_root | ||
from pathlib import Path | ||
|
||
## file names | ||
|
||
SCHEMA_FILE_PATH = "config/schema.yaml" | ||
FILE_NAME: str = "covertype.csv" | ||
TRAIN_FILE_NAME: str = "train.csv" | ||
TEST_FILE_NAME: str = "test.csv" | ||
SCHEMA_FILE_PATH: Path = os.path.join("config", "schema.yaml") | ||
|
||
|
||
ARTIFACT_DIR = os.path.join(from_root(), "artifacts") | ||
|
||
## Data Ingestion | ||
|
||
DATA_INGESTION_DIR: str = "DataIngestion" | ||
DATA_INGESTION_FEATURE_STORE: str = "feature_store" | ||
DATA_INGESTION_TRAIN_TEST_SPLIT: float = 0.2 | ||
|
||
|
||
## Data Validation | ||
|
||
DATA_VALIDATION_DIR_NAME: str = "data_validation" | ||
DATA_VALIDATION_DIR_NAME_DRIFT_REPORT_NAME: str = "report.yaml" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
from dataclasses import dataclass | ||
from pathlib import Path | ||
|
||
|
||
@dataclass | ||
class DataIngestionArtifact: | ||
trained_file_path:str | ||
test_file_path:str | ||
test_file_path:str | ||
|
||
@dataclass | ||
class DataValidationArtifact: | ||
validation_status: bool | ||
message: str | ||
drift_report_file_path: Path |
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