-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
4e3bace
commit 907b606
Showing
11 changed files
with
14 additions
and
81 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
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
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
File renamed without changes.
File renamed without changes.
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
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
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,5 +1,4 @@ | ||
from dataclasses import dataclass | ||
from typing import Optional | ||
|
||
|
||
@dataclass | ||
|
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
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,32 +0,0 @@ | ||
from pathlib import Path | ||
from typing import Tuple | ||
|
||
import great_expectations as ge | ||
import pandas as pd | ||
import pytest | ||
from great_expectations.dataset.pandas_dataset import PandasDataset | ||
|
||
from nlp_sample.data import load_cola_data | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def data_path() -> Path: | ||
_data_path = Path("/tmp/data") | ||
_data_path.mkdir(exist_ok=True, parents=True) | ||
|
||
load_cola_data(path_to_save=_data_path) | ||
|
||
return _data_path | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def data(data_path: Path) -> Tuple[PandasDataset, PandasDataset]: | ||
df_train = pd.read_csv(data_path / "train.csv") | ||
df_val = pd.read_csv(data_path / "val.csv") | ||
df_test = pd.read_csv(data_path / "test.csv") | ||
|
||
return ( | ||
ge.dataset.PandasDataset(df_train), | ||
ge.dataset.PandasDataset(df_val), | ||
ge.dataset.PandasDataset(df_test), | ||
) | ||
This file was deleted.
Oops, something went wrong.