Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autointent/_dataset/_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def from_hub(cls, repo_name: str) -> "Dataset":
"""Loads a dataset from the Hugging Face Hub.

Args:
repo_name: The name of the Hugging Face repository, like `AutoIntent/clinc150`.
repo_name: The name of the Hugging Face repository, like `DeepPavlov/clinc150`.
"""
from ._reader import DictReader

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
},
{
"name": "HuggingFace",
"url": "https://huggingface.co/AutoIntent",
"url": "https://huggingface.co/DeepPavlov",
"icon": f"{BASE_STATIC_URL}/hf-logo.svg",
"type": "local",
},
Expand Down
22 changes: 11 additions & 11 deletions tests/configs/test_combined_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ def test_invalid_optimizer_config_missing_field():
def test_invalid_optimizer_config_wrong_type():
"""Test that an invalid field type raises ValidationError."""
invalid_config = {
"node_type": "scoring",
"target_metric": "scoring_roc_auc",
"search_space": [
{
"module_name": "dnnc",
"cross_encoder_name": "cross-encoder/ms-marco-MiniLM-L-6-v2", # Should be a list
"k": "wrong_type", # Should be a list of integers
"train_head": "true", # Should be a boolean, not a string
}
],
}
"node_type": "scoring",
"target_metric": "scoring_roc_auc",
"search_space": [
{
"module_name": "dnnc",
"cross_encoder_name": "cross-encoder/ms-marco-MiniLM-L-6-v2", # Should be a list
"k": "wrong_type", # Should be a list of integers
"train_head": "true", # Should be a boolean, not a string
}
],
}

with pytest.raises(TypeError):
NodeOptimizer(**invalid_config)
2 changes: 1 addition & 1 deletion tests/data/test_oos_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def count_oos(split: HFDataset):


def create_clinc150_subset():
clinc = Dataset.from_hub("AutoIntent/clinc150")
clinc = Dataset.from_hub("DeepPavlov/clinc150")

intents_subset = clinc.intents[:4]
intent_ids = [intent.id for intent in intents_subset]
Expand Down
2 changes: 1 addition & 1 deletion user_guides/advanced/01_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
"""

# %%
dataset = Dataset.from_hub("AutoIntent/clinc150_subset")
dataset = Dataset.from_hub("DeepPavlov/clinc150_subset")

# %% [markdown]
"""
Expand Down
2 changes: 1 addition & 1 deletion user_guides/advanced/02_automl.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
# %%
from autointent import Dataset

dataset = Dataset.from_hub("AutoIntent/clinc150_subset")
dataset = Dataset.from_hub("DeepPavlov/clinc150_subset")

# %% [markdown]
"""
Expand Down
2 changes: 1 addition & 1 deletion user_guides/advanced/03_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

from autointent import Dataset

dataset = Dataset.from_hub("AutoIntent/clinc150_subset")
dataset = Dataset.from_hub("DeepPavlov/clinc150_subset")

# %% [markdown]
"""
Expand Down
2 changes: 1 addition & 1 deletion user_guides/advanced/04_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
pipeline_optimizer = Pipeline.from_search_space(search_space)
pipeline_optimizer.set_config(log_config)

dataset = Dataset.from_hub("AutoIntent/clinc150_subset")
dataset = Dataset.from_hub("DeepPavlov/clinc150_subset")

# %% [markdown]
"""
Expand Down
2 changes: 1 addition & 1 deletion user_guides/basic_usage/01_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"""

# %%
Dataset.from_hub("AutoIntent/banking77")
Dataset.from_hub("DeepPavlov/banking77")

# %% [markdown]
"""
Expand Down
2 changes: 1 addition & 1 deletion user_guides/basic_usage/02_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
# %%
from autointent import Dataset

dataset = Dataset.from_hub("AutoIntent/clinc150_subset")
dataset = Dataset.from_hub("DeepPavlov/clinc150_subset")
dataset

# %% [markdown]
Expand Down
4 changes: 2 additions & 2 deletions user_guides/basic_usage/03_automl.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# %%
from autointent import Dataset

dataset = Dataset.from_hub("AutoIntent/clinc150_subset")
dataset = Dataset.from_hub("DeepPavlov/clinc150_subset")
dataset

# %%
Expand Down Expand Up @@ -124,7 +124,7 @@
from autointent.utils import load_preset

# load data
dataset = Dataset.from_hub("AutoIntent/clinc150_subset")
dataset = Dataset.from_hub("DeepPavlov/clinc150_subset")

# customize search space
preset = load_preset("light_extra")
Expand Down
4 changes: 2 additions & 2 deletions user_guides/basic_usage/04_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
]

dataset = Dataset.from_hub("AutoIntent/clinc150_subset")
dataset = Dataset.from_hub("DeepPavlov/clinc150_subset")
pipeline = Pipeline.from_search_space(search_space)
context = pipeline.fit(dataset)
pipeline.predict(["hello, world!"])
Expand Down Expand Up @@ -68,7 +68,7 @@
from autointent import Dataset, Pipeline
from autointent.configs import LoggingConfig

dataset = Dataset.from_hub("AutoIntent/clinc150_subset")
dataset = Dataset.from_hub("DeepPavlov/clinc150_subset")
pipeline = Pipeline.from_search_space(search_space)
pipeline.set_config(LoggingConfig(dump_modules=True, clear_ram=True))

Expand Down
Loading