├── LICENSE ├── README.md ├── config └── path.py ├── dataset └── bot_adversarial_dialogue │ └── whole_infos.pkl ├── get_question_pool.py ├── qualitative.py ├── requirements.txt ├── textattack ├── attack_results │ ├── __init__.py │ ├── attack_result.py │ ├── failed_attack_result.py │ ├── maximized_attack_result.py │ ├── skipped_attack_result.py │ └── successful_attack_result.py ├── constraints │ ├── __init__.py │ ├── constraint.py │ ├── grammaticality │ │ ├── __init__.py │ │ ├── cola.py │ │ ├── language_models │ │ │ ├── __init__.py │ │ │ ├── google_language_model │ │ │ │ ├── __init__.py │ │ │ │ ├── alzantot_goog_lm.py │ │ │ │ ├── google_language_model.py │ │ │ │ ├── lm_data_utils.py │ │ │ │ └── lm_utils.py │ │ │ ├── gpt2.py │ │ │ ├── language_model_constraint.py │ │ │ └── learning_to_write │ │ │ │ ├── __init__.py │ │ │ │ ├── adaptive_softmax.py │ │ │ │ ├── language_model_helpers.py │ │ │ │ ├── learning_to_write.py │ │ │ │ └── rnn_model.py │ │ ├── language_tool.py │ │ └── part_of_speech.py │ ├── overlap │ │ ├── __init__.py │ │ ├── bleu_score.py │ │ ├── chrf_score.py │ │ ├── levenshtein_edit_distance.py │ │ ├── max_words_perturbed.py │ │ └── meteor_score.py │ ├── pre_transformation │ │ ├── __init__.py │ │ ├── input_column_modification.py │ │ ├── max_modification_rate.py │ │ ├── max_num_words_modified.py │ │ ├── max_word_index_modification.py │ │ ├── min_word_length.py │ │ ├── repeat_modification.py │ │ └── stopword_modification.py │ ├── pre_transformation_constraint.py │ └── semantics │ │ ├── __init__.py │ │ ├── bert_score.py │ │ ├── sentence_encoders │ │ ├── __init__.py │ │ ├── bert │ │ │ ├── __init__.py │ │ │ └── bert.py │ │ ├── infer_sent │ │ │ ├── __init__.py │ │ │ ├── infer_sent.py │ │ │ └── infer_sent_model.py │ │ ├── sentence_encoder.py │ │ ├── thought_vector.py │ │ └── transformer_sentence_encoder │ │ │ ├── __init__.py │ │ │ └── transformer_sentence_encoder.py │ │ └── word_embedding_distance.py ├── goal_function_results │ ├── __init__.py │ ├── classification_goal_function_result.py │ ├── goal_function_result.py │ └── text_to_text_goal_function_result.py ├── goal_functions │ ├── __init__.py │ ├── classification │ │ ├── __init__.py │ │ ├── classification_goal_function.py │ │ ├── input_reduction.py │ │ ├── targeted_classification.py │ │ └── untargeted_classification.py │ ├── goal_function.py │ └── text │ │ ├── __init__.py │ │ ├── minimize_bleu.py │ │ ├── non_overlapping_output.py │ │ └── text_to_text_goal_function.py ├── model_args.py ├── models │ ├── README.md │ ├── __init__.py │ ├── helpers │ │ ├── __init__.py │ │ ├── glove_embedding_layer.py │ │ ├── lstm_for_classification.py │ │ ├── t5_for_text_to_text.py │ │ ├── utils.py │ │ └── word_cnn_for_classification.py │ ├── tokenizers │ │ ├── __init__.py │ │ ├── glove_tokenizer.py │ │ └── t5_tokenizer.py │ └── wrappers │ │ ├── __init__.py │ │ ├── huggingface_model_wrapper.py │ │ ├── model_wrapper.py │ │ ├── pytorch_model_wrapper.py │ │ ├── sklearn_model_wrapper.py │ │ └── tensorflow_model_wrapper.py ├── search_methods │ ├── __init__.py │ ├── alzantot_genetic_algorithm.py │ ├── beam_search.py │ ├── genetic_algorithm.py │ ├── greedy_search.py │ ├── greedy_word_swap_wir.py │ ├── improved_genetic_algorithm.py │ ├── particle_swarm_optimization.py │ ├── population_based_search.py │ └── search_method.py ├── shared │ ├── __init__.py │ ├── attacked_text.py │ ├── checkpoint.py │ ├── chinese_homophone_char.txt │ ├── data.py │ ├── utils │ │ ├── __init__.py │ │ ├── importing.py │ │ ├── install.py │ │ ├── misc.py │ │ ├── strings.py │ │ └── tensor.py │ ├── validators.py │ └── word_embeddings.py └── transformations │ ├── __init__.py │ ├── composite_transformation.py │ ├── sentence_transformations │ ├── __init__.py │ ├── back_translation.py │ └── sentence_transformation.py │ ├── transformation.py │ ├── word_deletion.py │ ├── word_innerswap_random.py │ ├── word_insertions │ ├── __init__.py │ ├── word_insertion.py │ ├── word_insertion_masked_lm.py │ └── word_insertion_random_synonym.py │ ├── word_merges │ ├── __init__.py │ ├── word_merge.py │ └── word_merge_masked_lm.py │ └── word_swaps │ ├── __init__.py │ ├── chinese_homophone_character_swap.py │ ├── word_swap.py │ ├── word_swap_change_location.py │ ├── word_swap_contract.py │ ├── word_swap_embedding.py │ ├── word_swap_extend.py │ ├── word_swap_gradient_based.py │ ├── word_swap_hownet.py │ ├── word_swap_masked_lm.py │ ├── word_swap_neighboring_character_swap.py │ ├── word_swap_qwerty.py │ ├── word_swap_random_character_deletion.py │ ├── word_swap_random_character_insertion.py │ ├── word_swap_random_character_substitution.py │ └── word_swap_wordnet.py └── tools ├── bleu.py ├── dialogpt_toxicity.py ├── eval_utils.py ├── file_op.py ├── gen └── gen_tool.py ├── godel_toxicity.py ├── load_chatbot.py ├── logger.py ├── search ├── __init__.py ├── bayesian_question_choice_and_editer.py ├── bayesian_question_choicer.py └── bayesopt │ ├── acquisition │ ├── acquisition_function │ │ └── acquisition_functions.py │ └── algorithm │ │ ├── __init__.py │ │ ├── greedy_ascent.py │ │ └── kmeanspp.py │ ├── dpp │ └── dpp.py │ ├── fitting │ └── fitting.py │ └── surrogate_model │ ├── gp_model_base.py │ ├── gp_model_by_indices.py │ └── model_wrapper.py ├── slice_op.py ├── stat.py ├── toxicity.py └── word_substitution.py /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/README.md -------------------------------------------------------------------------------- /config/path.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/config/path.py -------------------------------------------------------------------------------- /dataset/bot_adversarial_dialogue/whole_infos.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/dataset/bot_adversarial_dialogue/whole_infos.pkl -------------------------------------------------------------------------------- /get_question_pool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/get_question_pool.py -------------------------------------------------------------------------------- /qualitative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/qualitative.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/requirements.txt -------------------------------------------------------------------------------- /textattack/attack_results/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/attack_results/__init__.py -------------------------------------------------------------------------------- /textattack/attack_results/attack_result.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/attack_results/attack_result.py -------------------------------------------------------------------------------- /textattack/attack_results/failed_attack_result.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/attack_results/failed_attack_result.py -------------------------------------------------------------------------------- /textattack/attack_results/maximized_attack_result.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/attack_results/maximized_attack_result.py -------------------------------------------------------------------------------- /textattack/attack_results/skipped_attack_result.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/attack_results/skipped_attack_result.py -------------------------------------------------------------------------------- /textattack/attack_results/successful_attack_result.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/attack_results/successful_attack_result.py -------------------------------------------------------------------------------- /textattack/constraints/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/__init__.py -------------------------------------------------------------------------------- /textattack/constraints/constraint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/constraint.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/__init__.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/cola.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/cola.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/language_models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/language_models/__init__.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/language_models/google_language_model/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/language_models/google_language_model/__init__.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/language_models/google_language_model/alzantot_goog_lm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/language_models/google_language_model/alzantot_goog_lm.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/language_models/google_language_model/google_language_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/language_models/google_language_model/google_language_model.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/language_models/google_language_model/lm_data_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/language_models/google_language_model/lm_data_utils.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/language_models/google_language_model/lm_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/language_models/google_language_model/lm_utils.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/language_models/gpt2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/language_models/gpt2.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/language_models/language_model_constraint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/language_models/language_model_constraint.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/language_models/learning_to_write/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/language_models/learning_to_write/__init__.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/language_models/learning_to_write/adaptive_softmax.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/language_models/learning_to_write/adaptive_softmax.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/language_models/learning_to_write/language_model_helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/language_models/learning_to_write/language_model_helpers.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/language_models/learning_to_write/learning_to_write.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/language_models/learning_to_write/learning_to_write.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/language_models/learning_to_write/rnn_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/language_models/learning_to_write/rnn_model.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/language_tool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/language_tool.py -------------------------------------------------------------------------------- /textattack/constraints/grammaticality/part_of_speech.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/grammaticality/part_of_speech.py -------------------------------------------------------------------------------- /textattack/constraints/overlap/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/overlap/__init__.py -------------------------------------------------------------------------------- /textattack/constraints/overlap/bleu_score.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/overlap/bleu_score.py -------------------------------------------------------------------------------- /textattack/constraints/overlap/chrf_score.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/overlap/chrf_score.py -------------------------------------------------------------------------------- /textattack/constraints/overlap/levenshtein_edit_distance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/overlap/levenshtein_edit_distance.py -------------------------------------------------------------------------------- /textattack/constraints/overlap/max_words_perturbed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/overlap/max_words_perturbed.py -------------------------------------------------------------------------------- /textattack/constraints/overlap/meteor_score.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/overlap/meteor_score.py -------------------------------------------------------------------------------- /textattack/constraints/pre_transformation/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/pre_transformation/__init__.py -------------------------------------------------------------------------------- /textattack/constraints/pre_transformation/input_column_modification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/pre_transformation/input_column_modification.py -------------------------------------------------------------------------------- /textattack/constraints/pre_transformation/max_modification_rate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/pre_transformation/max_modification_rate.py -------------------------------------------------------------------------------- /textattack/constraints/pre_transformation/max_num_words_modified.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/pre_transformation/max_num_words_modified.py -------------------------------------------------------------------------------- /textattack/constraints/pre_transformation/max_word_index_modification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/pre_transformation/max_word_index_modification.py -------------------------------------------------------------------------------- /textattack/constraints/pre_transformation/min_word_length.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/pre_transformation/min_word_length.py -------------------------------------------------------------------------------- /textattack/constraints/pre_transformation/repeat_modification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/pre_transformation/repeat_modification.py -------------------------------------------------------------------------------- /textattack/constraints/pre_transformation/stopword_modification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/pre_transformation/stopword_modification.py -------------------------------------------------------------------------------- /textattack/constraints/pre_transformation_constraint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/pre_transformation_constraint.py -------------------------------------------------------------------------------- /textattack/constraints/semantics/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/semantics/__init__.py -------------------------------------------------------------------------------- /textattack/constraints/semantics/bert_score.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/semantics/bert_score.py -------------------------------------------------------------------------------- /textattack/constraints/semantics/sentence_encoders/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/semantics/sentence_encoders/__init__.py -------------------------------------------------------------------------------- /textattack/constraints/semantics/sentence_encoders/bert/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/semantics/sentence_encoders/bert/__init__.py -------------------------------------------------------------------------------- /textattack/constraints/semantics/sentence_encoders/bert/bert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/semantics/sentence_encoders/bert/bert.py -------------------------------------------------------------------------------- /textattack/constraints/semantics/sentence_encoders/infer_sent/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/semantics/sentence_encoders/infer_sent/__init__.py -------------------------------------------------------------------------------- /textattack/constraints/semantics/sentence_encoders/infer_sent/infer_sent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/semantics/sentence_encoders/infer_sent/infer_sent.py -------------------------------------------------------------------------------- /textattack/constraints/semantics/sentence_encoders/infer_sent/infer_sent_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/semantics/sentence_encoders/infer_sent/infer_sent_model.py -------------------------------------------------------------------------------- /textattack/constraints/semantics/sentence_encoders/sentence_encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/semantics/sentence_encoders/sentence_encoder.py -------------------------------------------------------------------------------- /textattack/constraints/semantics/sentence_encoders/thought_vector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/semantics/sentence_encoders/thought_vector.py -------------------------------------------------------------------------------- /textattack/constraints/semantics/sentence_encoders/transformer_sentence_encoder/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/semantics/sentence_encoders/transformer_sentence_encoder/__init__.py -------------------------------------------------------------------------------- /textattack/constraints/semantics/sentence_encoders/transformer_sentence_encoder/transformer_sentence_encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/semantics/sentence_encoders/transformer_sentence_encoder/transformer_sentence_encoder.py -------------------------------------------------------------------------------- /textattack/constraints/semantics/word_embedding_distance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/constraints/semantics/word_embedding_distance.py -------------------------------------------------------------------------------- /textattack/goal_function_results/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/goal_function_results/__init__.py -------------------------------------------------------------------------------- /textattack/goal_function_results/classification_goal_function_result.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/goal_function_results/classification_goal_function_result.py -------------------------------------------------------------------------------- /textattack/goal_function_results/goal_function_result.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/goal_function_results/goal_function_result.py -------------------------------------------------------------------------------- /textattack/goal_function_results/text_to_text_goal_function_result.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/goal_function_results/text_to_text_goal_function_result.py -------------------------------------------------------------------------------- /textattack/goal_functions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/goal_functions/__init__.py -------------------------------------------------------------------------------- /textattack/goal_functions/classification/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/goal_functions/classification/__init__.py -------------------------------------------------------------------------------- /textattack/goal_functions/classification/classification_goal_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/goal_functions/classification/classification_goal_function.py -------------------------------------------------------------------------------- /textattack/goal_functions/classification/input_reduction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/goal_functions/classification/input_reduction.py -------------------------------------------------------------------------------- /textattack/goal_functions/classification/targeted_classification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/goal_functions/classification/targeted_classification.py -------------------------------------------------------------------------------- /textattack/goal_functions/classification/untargeted_classification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/goal_functions/classification/untargeted_classification.py -------------------------------------------------------------------------------- /textattack/goal_functions/goal_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/goal_functions/goal_function.py -------------------------------------------------------------------------------- /textattack/goal_functions/text/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/goal_functions/text/__init__.py -------------------------------------------------------------------------------- /textattack/goal_functions/text/minimize_bleu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/goal_functions/text/minimize_bleu.py -------------------------------------------------------------------------------- /textattack/goal_functions/text/non_overlapping_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/goal_functions/text/non_overlapping_output.py -------------------------------------------------------------------------------- /textattack/goal_functions/text/text_to_text_goal_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/goal_functions/text/text_to_text_goal_function.py -------------------------------------------------------------------------------- /textattack/model_args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/model_args.py -------------------------------------------------------------------------------- /textattack/models/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/README.md -------------------------------------------------------------------------------- /textattack/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/__init__.py -------------------------------------------------------------------------------- /textattack/models/helpers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/helpers/__init__.py -------------------------------------------------------------------------------- /textattack/models/helpers/glove_embedding_layer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/helpers/glove_embedding_layer.py -------------------------------------------------------------------------------- /textattack/models/helpers/lstm_for_classification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/helpers/lstm_for_classification.py -------------------------------------------------------------------------------- /textattack/models/helpers/t5_for_text_to_text.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/helpers/t5_for_text_to_text.py -------------------------------------------------------------------------------- /textattack/models/helpers/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/helpers/utils.py -------------------------------------------------------------------------------- /textattack/models/helpers/word_cnn_for_classification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/helpers/word_cnn_for_classification.py -------------------------------------------------------------------------------- /textattack/models/tokenizers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/tokenizers/__init__.py -------------------------------------------------------------------------------- /textattack/models/tokenizers/glove_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/tokenizers/glove_tokenizer.py -------------------------------------------------------------------------------- /textattack/models/tokenizers/t5_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/tokenizers/t5_tokenizer.py -------------------------------------------------------------------------------- /textattack/models/wrappers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/wrappers/__init__.py -------------------------------------------------------------------------------- /textattack/models/wrappers/huggingface_model_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/wrappers/huggingface_model_wrapper.py -------------------------------------------------------------------------------- /textattack/models/wrappers/model_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/wrappers/model_wrapper.py -------------------------------------------------------------------------------- /textattack/models/wrappers/pytorch_model_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/wrappers/pytorch_model_wrapper.py -------------------------------------------------------------------------------- /textattack/models/wrappers/sklearn_model_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/wrappers/sklearn_model_wrapper.py -------------------------------------------------------------------------------- /textattack/models/wrappers/tensorflow_model_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/models/wrappers/tensorflow_model_wrapper.py -------------------------------------------------------------------------------- /textattack/search_methods/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/search_methods/__init__.py -------------------------------------------------------------------------------- /textattack/search_methods/alzantot_genetic_algorithm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/search_methods/alzantot_genetic_algorithm.py -------------------------------------------------------------------------------- /textattack/search_methods/beam_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/search_methods/beam_search.py -------------------------------------------------------------------------------- /textattack/search_methods/genetic_algorithm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/search_methods/genetic_algorithm.py -------------------------------------------------------------------------------- /textattack/search_methods/greedy_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/search_methods/greedy_search.py -------------------------------------------------------------------------------- /textattack/search_methods/greedy_word_swap_wir.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/search_methods/greedy_word_swap_wir.py -------------------------------------------------------------------------------- /textattack/search_methods/improved_genetic_algorithm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/search_methods/improved_genetic_algorithm.py -------------------------------------------------------------------------------- /textattack/search_methods/particle_swarm_optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/search_methods/particle_swarm_optimization.py -------------------------------------------------------------------------------- /textattack/search_methods/population_based_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/search_methods/population_based_search.py -------------------------------------------------------------------------------- /textattack/search_methods/search_method.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/search_methods/search_method.py -------------------------------------------------------------------------------- /textattack/shared/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/shared/__init__.py -------------------------------------------------------------------------------- /textattack/shared/attacked_text.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/shared/attacked_text.py -------------------------------------------------------------------------------- /textattack/shared/checkpoint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/shared/checkpoint.py -------------------------------------------------------------------------------- /textattack/shared/chinese_homophone_char.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/shared/chinese_homophone_char.txt -------------------------------------------------------------------------------- /textattack/shared/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/shared/data.py -------------------------------------------------------------------------------- /textattack/shared/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/shared/utils/__init__.py -------------------------------------------------------------------------------- /textattack/shared/utils/importing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/shared/utils/importing.py -------------------------------------------------------------------------------- /textattack/shared/utils/install.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/shared/utils/install.py -------------------------------------------------------------------------------- /textattack/shared/utils/misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/shared/utils/misc.py -------------------------------------------------------------------------------- /textattack/shared/utils/strings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/shared/utils/strings.py -------------------------------------------------------------------------------- /textattack/shared/utils/tensor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/shared/utils/tensor.py -------------------------------------------------------------------------------- /textattack/shared/validators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/shared/validators.py -------------------------------------------------------------------------------- /textattack/shared/word_embeddings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/shared/word_embeddings.py -------------------------------------------------------------------------------- /textattack/transformations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/__init__.py -------------------------------------------------------------------------------- /textattack/transformations/composite_transformation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/composite_transformation.py -------------------------------------------------------------------------------- /textattack/transformations/sentence_transformations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/sentence_transformations/__init__.py -------------------------------------------------------------------------------- /textattack/transformations/sentence_transformations/back_translation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/sentence_transformations/back_translation.py -------------------------------------------------------------------------------- /textattack/transformations/sentence_transformations/sentence_transformation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/sentence_transformations/sentence_transformation.py -------------------------------------------------------------------------------- /textattack/transformations/transformation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/transformation.py -------------------------------------------------------------------------------- /textattack/transformations/word_deletion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_deletion.py -------------------------------------------------------------------------------- /textattack/transformations/word_innerswap_random.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_innerswap_random.py -------------------------------------------------------------------------------- /textattack/transformations/word_insertions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_insertions/__init__.py -------------------------------------------------------------------------------- /textattack/transformations/word_insertions/word_insertion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_insertions/word_insertion.py -------------------------------------------------------------------------------- /textattack/transformations/word_insertions/word_insertion_masked_lm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_insertions/word_insertion_masked_lm.py -------------------------------------------------------------------------------- /textattack/transformations/word_insertions/word_insertion_random_synonym.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_insertions/word_insertion_random_synonym.py -------------------------------------------------------------------------------- /textattack/transformations/word_merges/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_merges/__init__.py -------------------------------------------------------------------------------- /textattack/transformations/word_merges/word_merge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_merges/word_merge.py -------------------------------------------------------------------------------- /textattack/transformations/word_merges/word_merge_masked_lm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_merges/word_merge_masked_lm.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/__init__.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/chinese_homophone_character_swap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/chinese_homophone_character_swap.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/word_swap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/word_swap.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/word_swap_change_location.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/word_swap_change_location.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/word_swap_contract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/word_swap_contract.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/word_swap_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/word_swap_embedding.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/word_swap_extend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/word_swap_extend.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/word_swap_gradient_based.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/word_swap_gradient_based.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/word_swap_hownet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/word_swap_hownet.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/word_swap_masked_lm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/word_swap_masked_lm.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/word_swap_neighboring_character_swap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/word_swap_neighboring_character_swap.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/word_swap_qwerty.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/word_swap_qwerty.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/word_swap_random_character_deletion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/word_swap_random_character_deletion.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/word_swap_random_character_insertion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/word_swap_random_character_insertion.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/word_swap_random_character_substitution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/word_swap_random_character_substitution.py -------------------------------------------------------------------------------- /textattack/transformations/word_swaps/word_swap_wordnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/textattack/transformations/word_swaps/word_swap_wordnet.py -------------------------------------------------------------------------------- /tools/bleu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/bleu.py -------------------------------------------------------------------------------- /tools/dialogpt_toxicity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/dialogpt_toxicity.py -------------------------------------------------------------------------------- /tools/eval_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/eval_utils.py -------------------------------------------------------------------------------- /tools/file_op.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/file_op.py -------------------------------------------------------------------------------- /tools/gen/gen_tool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/gen/gen_tool.py -------------------------------------------------------------------------------- /tools/godel_toxicity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/godel_toxicity.py -------------------------------------------------------------------------------- /tools/load_chatbot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/load_chatbot.py -------------------------------------------------------------------------------- /tools/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/logger.py -------------------------------------------------------------------------------- /tools/search/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/search/__init__.py -------------------------------------------------------------------------------- /tools/search/bayesian_question_choice_and_editer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/search/bayesian_question_choice_and_editer.py -------------------------------------------------------------------------------- /tools/search/bayesian_question_choicer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/search/bayesian_question_choicer.py -------------------------------------------------------------------------------- /tools/search/bayesopt/acquisition/acquisition_function/acquisition_functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/search/bayesopt/acquisition/acquisition_function/acquisition_functions.py -------------------------------------------------------------------------------- /tools/search/bayesopt/acquisition/algorithm/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/search/bayesopt/acquisition/algorithm/__init__.py -------------------------------------------------------------------------------- /tools/search/bayesopt/acquisition/algorithm/greedy_ascent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/search/bayesopt/acquisition/algorithm/greedy_ascent.py -------------------------------------------------------------------------------- /tools/search/bayesopt/acquisition/algorithm/kmeanspp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/search/bayesopt/acquisition/algorithm/kmeanspp.py -------------------------------------------------------------------------------- /tools/search/bayesopt/dpp/dpp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/search/bayesopt/dpp/dpp.py -------------------------------------------------------------------------------- /tools/search/bayesopt/fitting/fitting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/search/bayesopt/fitting/fitting.py -------------------------------------------------------------------------------- /tools/search/bayesopt/surrogate_model/gp_model_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/search/bayesopt/surrogate_model/gp_model_base.py -------------------------------------------------------------------------------- /tools/search/bayesopt/surrogate_model/gp_model_by_indices.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/search/bayesopt/surrogate_model/gp_model_by_indices.py -------------------------------------------------------------------------------- /tools/search/bayesopt/surrogate_model/model_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/search/bayesopt/surrogate_model/model_wrapper.py -------------------------------------------------------------------------------- /tools/slice_op.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/slice_op.py -------------------------------------------------------------------------------- /tools/stat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/stat.py -------------------------------------------------------------------------------- /tools/toxicity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/toxicity.py -------------------------------------------------------------------------------- /tools/word_substitution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snu-mllab/Bayesian-Red-Teaming/HEAD/tools/word_substitution.py --------------------------------------------------------------------------------