Skip to content

Commit 96e352e

Browse files
authored
Merge branch 'master' into muelerma-hangouts-channel
2 parents c0c3948 + 5c552b0 commit 96e352e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rasa/nlu/classifiers/diet_classifier.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from rasa.nlu.tokenizers.tokenizer import Token
2020
from rasa.nlu.classifiers import LABEL_RANKING_LENGTH
2121
from rasa.utils import train_utils
22+
from rasa.utils.common import raise_warning
2223
from rasa.utils.tensorflow import layers
2324
from rasa.utils.tensorflow.transformer import TransformerEncoder
2425
from rasa.utils.tensorflow.models import RasaModel
@@ -277,7 +278,7 @@ def __init__(
277278
"""Declare instance variables with default values."""
278279

279280
if component_config is not None and EPOCHS not in component_config:
280-
logger.warning(
281+
raise_warning(
281282
f"Please configure the number of '{EPOCHS}' in your configuration file."
282283
f" We will change the default value of '{EPOCHS}' in the future to 1. "
283284
)

0 commit comments

Comments
 (0)