dc6079821b
Docs Tests / Check for file changes (push) Has been cancelled
Docs Tests / Test Documentation (push) Has been cancelled
Docs Tests / Documentation Linting Checks (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.10, test-performance) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.10, test-policies) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.8, test-cli) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.8, test-core-featurizers) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.8, test-full-model-training) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.8, test-nlu-featurizers) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.8, test-nlu-predictors) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.8, test-other-unit-tests) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.8, test-performance) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.8, test-policies) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.9, test-cli) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.9, test-core-featurizers) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.9, test-full-model-training) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.9, test-nlu-featurizers) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.9, test-nlu-predictors) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.9, test-other-unit-tests) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.9, test-performance) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.9, test-policies) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.10, test-cli) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.10, test-core-featurizers) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.10, test-full-model-training) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.10, test-nlu-featurizers) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.10, test-nlu-predictors) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.10, test-other-unit-tests) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.10, test-performance) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.10, test-policies) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.8, test-cli) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.8, test-core-featurizers) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.8, test-full-model-training) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.8, test-nlu-featurizers) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.8, test-nlu-predictors) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.8, test-other-unit-tests) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.8, test-performance) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.8, test-policies) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.9, test-cli) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.9, test-core-featurizers) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.9, test-full-model-training) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.9, test-nlu-featurizers) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.9, test-nlu-predictors) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.9, test-other-unit-tests) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.9, test-performance) (push) Has been cancelled
Continuous Integration / Run Tests (windows-2022, 3.9, test-policies) (push) Has been cancelled
Continuous Integration / Run Flaky Tests (ubuntu-24.04, 3.10) (push) Has been cancelled
Continuous Integration / Run Flaky Tests (ubuntu-24.04, 3.8) (push) Has been cancelled
Continuous Integration / Run Flaky Tests (ubuntu-24.04, 3.9) (push) Has been cancelled
Continuous Integration / Run Flaky Tests (windows-2022, 3.10) (push) Has been cancelled
Continuous Integration / Run Flaky Tests (windows-2022, 3.8) (push) Has been cancelled
Continuous Integration / Run Flaky Tests (windows-2022, 3.9) (push) Has been cancelled
Continuous Integration / Check for file changes (push) Has been cancelled
Continuous Integration / Wait for docs tests (push) Has been cancelled
Continuous Integration / Code Quality (push) Has been cancelled
Continuous Integration / Check for changelog (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.10, test-cli) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.10, test-core-featurizers) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.10, test-full-model-training) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.10, test-nlu-featurizers) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.10, test-nlu-predictors) (push) Has been cancelled
Continuous Integration / Run Tests (ubuntu-24.04, 3.10, test-other-unit-tests) (push) Has been cancelled
Continuous Integration / Upload coverage reports to codeclimate (push) Has been cancelled
Continuous Integration / Run Non-Sequential Integration Tests (push) Has been cancelled
Continuous Integration / Run Broker Integration Tests (push) Has been cancelled
Continuous Integration / Run Sequential Integration Tests (push) Has been cancelled
Continuous Integration / Build Docker base images and setup environment (push) Has been cancelled
Continuous Integration / Build Docker (default) (push) Has been cancelled
Continuous Integration / Build Docker (full) (push) Has been cancelled
Continuous Integration / Build Docker (mitie-en) (push) Has been cancelled
Continuous Integration / Build Docker (spacy-de) (push) Has been cancelled
Continuous Integration / Build Docker (spacy-en) (push) Has been cancelled
Continuous Integration / Build Docker (spacy-it) (push) Has been cancelled
Continuous Integration / Deploy to PyPI (push) Has been cancelled
Continuous Integration / Notify Slack & Publish Release Notes (push) Has been cancelled
Publish Documentation / Evaluate release tag (push) Has been cancelled
Publish Documentation / Prebuild Docs (push) Has been cancelled
Publish Documentation / Preview Docs (push) Has been cancelled
Publish Documentation / Check for file changes (push) Has been cancelled
Publish Documentation / Publish Docs (push) Has been cancelled
Automatic PR Merger / mergepal (push) Has been cancelled
CI Github Actions / Run Tests (push) Has been cancelled
Semgrep / Semgrep Workflow Security Scan (push) Has been cancelled
117 lines
3.1 KiB
Python
117 lines
3.1 KiB
Python
# constants for configuration parameters of our tensorflow models
|
|
|
|
LABEL = "label"
|
|
IDS = "ids"
|
|
# LABEL_PAD_ID is used to pad multi-label training examples.
|
|
# It should be < 0 to avoid index out of bounds errors by tf.one_hot.
|
|
LABEL_PAD_ID = -1
|
|
HIDDEN_LAYERS_SIZES = "hidden_layers_sizes"
|
|
SHARE_HIDDEN_LAYERS = "share_hidden_layers"
|
|
|
|
TRANSFORMER_SIZE = "transformer_size"
|
|
NUM_TRANSFORMER_LAYERS = "number_of_transformer_layers"
|
|
NUM_HEADS = "number_of_attention_heads"
|
|
UNIDIRECTIONAL_ENCODER = "unidirectional_encoder"
|
|
KEY_RELATIVE_ATTENTION = "use_key_relative_attention"
|
|
VALUE_RELATIVE_ATTENTION = "use_value_relative_attention"
|
|
MAX_RELATIVE_POSITION = "max_relative_position"
|
|
|
|
BATCH_SIZES = "batch_size"
|
|
BATCH_STRATEGY = "batch_strategy"
|
|
EPOCHS = "epochs"
|
|
RANDOM_SEED = "random_seed"
|
|
LEARNING_RATE = "learning_rate"
|
|
|
|
DENSE_DIMENSION = "dense_dimension"
|
|
CONCAT_DIMENSION = "concat_dimension"
|
|
EMBEDDING_DIMENSION = "embedding_dimension"
|
|
ENCODING_DIMENSION = "encoding_dimension"
|
|
|
|
SIMILARITY_TYPE = "similarity_type"
|
|
LOSS_TYPE = "loss_type"
|
|
NUM_NEG = "number_of_negative_examples"
|
|
MAX_POS_SIM = "maximum_positive_similarity"
|
|
MAX_NEG_SIM = "maximum_negative_similarity"
|
|
USE_MAX_NEG_SIM = "use_maximum_negative_similarity"
|
|
|
|
SCALE_LOSS = "scale_loss"
|
|
REGULARIZATION_CONSTANT = "regularization_constant"
|
|
NEGATIVE_MARGIN_SCALE = "negative_margin_scale"
|
|
DROP_RATE = "drop_rate"
|
|
DROP_RATE_ATTENTION = "drop_rate_attention"
|
|
DROP_RATE_DIALOGUE = "drop_rate_dialogue"
|
|
DROP_RATE_LABEL = "drop_rate_label"
|
|
CONSTRAIN_SIMILARITIES = "constrain_similarities"
|
|
|
|
CONNECTION_DENSITY = "connection_density"
|
|
|
|
EVAL_NUM_EPOCHS = "evaluate_every_number_of_epochs"
|
|
EVAL_NUM_EXAMPLES = "evaluate_on_number_of_examples"
|
|
|
|
INTENT_CLASSIFICATION = "intent_classification"
|
|
ENTITY_RECOGNITION = "entity_recognition"
|
|
MASKED_LM = "use_masked_language_model"
|
|
|
|
SPARSE_INPUT_DROPOUT = "use_sparse_input_dropout"
|
|
DENSE_INPUT_DROPOUT = "use_dense_input_dropout"
|
|
|
|
RANKING_LENGTH = "ranking_length"
|
|
RENORMALIZE_CONFIDENCES = "renormalize_confidences"
|
|
MODEL_CONFIDENCE = "model_confidence"
|
|
|
|
BILOU_FLAG = "BILOU_flag"
|
|
|
|
RETRIEVAL_INTENT = "retrieval_intent"
|
|
|
|
USE_TEXT_AS_LABEL = "use_text_as_label"
|
|
|
|
SOFTMAX = "softmax"
|
|
MARGIN = "margin"
|
|
AUTO = "auto"
|
|
INNER = "inner"
|
|
COSINE = "cosine"
|
|
CROSS_ENTROPY = "cross_entropy"
|
|
|
|
BALANCED = "balanced"
|
|
|
|
SEQUENCE = "sequence"
|
|
SEQUENCE_LENGTH = f"{SEQUENCE}_lengths"
|
|
SENTENCE = "sentence"
|
|
|
|
POOLING = "pooling"
|
|
MAX_POOLING = "max"
|
|
MEAN_POOLING = "mean"
|
|
|
|
TENSORBOARD_LOG_DIR = "tensorboard_log_directory"
|
|
TENSORBOARD_LOG_LEVEL = "tensorboard_log_level"
|
|
|
|
SEQUENCE_FEATURES = "sequence_features"
|
|
SENTENCE_FEATURES = "sentence_features"
|
|
|
|
FEATURIZERS = "featurizers"
|
|
CHECKPOINT_MODEL = "checkpoint_model"
|
|
|
|
MASK = "mask"
|
|
|
|
IGNORE_INTENTS_LIST = "ignore_intents_list"
|
|
|
|
TOLERANCE = "tolerance"
|
|
|
|
POSITIVE_SCORES_KEY = "positive_scores"
|
|
|
|
NEGATIVE_SCORES_KEY = "negative_scores"
|
|
|
|
RANKING_KEY = "label_ranking"
|
|
QUERY_INTENT_KEY = "query_intent"
|
|
SCORE_KEY = "score"
|
|
THRESHOLD_KEY = "threshold"
|
|
SEVERITY_KEY = "severity"
|
|
NAME = "name"
|
|
|
|
TF_DETERMINISTIC_OPS = "TF_DETERMINISTIC_OPS"
|
|
EPOCH_OVERRIDE = "epoch_override"
|
|
|
|
USE_GPU = "use_gpu"
|
|
RUN_EAGERLY = "run_eagerly"
|
|
DROP_SMALL_LAST_BATCH = "drop_small_last_batch"
|