├── .github └── workflows │ ├── format.yml │ ├── publish.yml │ └── test.yml ├── .gitignore ├── LICENSE ├── README.md ├── examples ├── __init__.py ├── binary_classification_example.py ├── config │ ├── example.ini │ └── logging.ini ├── factorization_machine_example.py ├── graph_convolutional_matrix_completion_example.py ├── matrix_factorization_example.py ├── scdv_examples.py └── word_item_similarity_example.py ├── poetry.lock ├── pyproject.toml ├── redshells ├── __init__.py ├── app │ ├── __init__.py │ └── word_item_similarity │ │ ├── __init__.py │ │ ├── build_word_item_similarity.py │ │ ├── calculate_document_embedding.py │ │ ├── calculate_word_embedding.py │ │ ├── calculate_word_item_similarity.py │ │ ├── dimension_reduction_model.py │ │ ├── filter_item_by_word_similarity.py │ │ ├── find_item_keyword_by_matching.py │ │ ├── make_click_train_data.py │ │ └── make_similarity_data.py ├── contrib │ ├── __init__.py │ ├── app │ │ ├── __init__.py │ │ └── word_item_similarity │ │ │ ├── __init__.py │ │ │ └── calculate_similarity_with_matrix_factorization.py │ ├── model │ │ ├── __init__.py │ │ ├── early_stopping.py │ │ ├── factorization_machine.py │ │ ├── feature_aggregation_similarity_model.py │ │ ├── gcmc_dataset.py │ │ ├── graph_convolutional_matrix_completion.py │ │ ├── matrix_factorization_model.py │ │ └── utils.py │ └── train │ │ ├── __init__.py │ │ ├── train_feature_aggregation_similarity_model.py │ │ ├── train_graph_convolutional_matrix_completion.py │ │ └── train_matrix_factorization.py ├── data │ ├── __init__.py │ ├── data_frame_utils.py │ ├── load_data_of_task.py │ └── load_existing_file.py ├── factory │ ├── __init__.py │ ├── optuna_param_factory.py │ ├── prediction_model_factory.py │ └── singleton.py ├── model │ ├── __init__.py │ ├── lda_model.py │ ├── scdv.py │ ├── tdidf.py │ ├── tfidf.py │ └── utils.py └── train │ ├── __init__.py │ ├── train_binary_clasification_model.py │ ├── train_clasification_model.py │ ├── train_dictionary.py │ ├── train_doc2vec.py │ ├── train_factorization_machine.py │ ├── train_fasttext.py │ ├── train_lda_model.py │ ├── train_pairwise_similarity_model.py │ ├── train_scdv.py │ ├── train_tfidf.py │ ├── train_word2vec.py │ └── utils │ ├── __init__.py │ ├── token_iterator.py │ └── utils.py ├── test ├── __init__.py ├── contrib │ ├── __init__.py │ ├── model │ │ ├── __init__.py │ │ ├── test_feature_aggregation_similarity_model.py │ │ ├── test_gcmc_graph_dataset.py │ │ ├── test_gcmc_graph_dataset_map.py │ │ ├── test_gcmc_id_map.py │ │ └── test_graph_convolutional_matrix_completion.py │ └── train │ │ ├── __init__.py │ │ ├── test_gcmc_dataset.py │ │ └── test_train_feature_aggregation_similarity_model.py ├── model │ ├── __init__.py │ └── test_tfidf.py └── train │ ├── __init__.py │ ├── test_train_doc2vec.py │ ├── test_train_fasttext.py │ ├── test_train_lda_model.py │ ├── test_train_pairwise_similarity_model.py │ └── test_train_word2vec.py └── tox.ini /.github/workflows/format.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/.github/workflows/format.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/README.md -------------------------------------------------------------------------------- /examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/binary_classification_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/examples/binary_classification_example.py -------------------------------------------------------------------------------- /examples/config/example.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/examples/config/example.ini -------------------------------------------------------------------------------- /examples/config/logging.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/examples/config/logging.ini -------------------------------------------------------------------------------- /examples/factorization_machine_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/examples/factorization_machine_example.py -------------------------------------------------------------------------------- /examples/graph_convolutional_matrix_completion_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/examples/graph_convolutional_matrix_completion_example.py -------------------------------------------------------------------------------- /examples/matrix_factorization_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/examples/matrix_factorization_example.py -------------------------------------------------------------------------------- /examples/scdv_examples.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/examples/scdv_examples.py -------------------------------------------------------------------------------- /examples/word_item_similarity_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/examples/word_item_similarity_example.py -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/pyproject.toml -------------------------------------------------------------------------------- /redshells/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/__init__.py -------------------------------------------------------------------------------- /redshells/app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /redshells/app/word_item_similarity/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/app/word_item_similarity/__init__.py -------------------------------------------------------------------------------- /redshells/app/word_item_similarity/build_word_item_similarity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/app/word_item_similarity/build_word_item_similarity.py -------------------------------------------------------------------------------- /redshells/app/word_item_similarity/calculate_document_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/app/word_item_similarity/calculate_document_embedding.py -------------------------------------------------------------------------------- /redshells/app/word_item_similarity/calculate_word_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/app/word_item_similarity/calculate_word_embedding.py -------------------------------------------------------------------------------- /redshells/app/word_item_similarity/calculate_word_item_similarity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/app/word_item_similarity/calculate_word_item_similarity.py -------------------------------------------------------------------------------- /redshells/app/word_item_similarity/dimension_reduction_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/app/word_item_similarity/dimension_reduction_model.py -------------------------------------------------------------------------------- /redshells/app/word_item_similarity/filter_item_by_word_similarity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/app/word_item_similarity/filter_item_by_word_similarity.py -------------------------------------------------------------------------------- /redshells/app/word_item_similarity/find_item_keyword_by_matching.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/app/word_item_similarity/find_item_keyword_by_matching.py -------------------------------------------------------------------------------- /redshells/app/word_item_similarity/make_click_train_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/app/word_item_similarity/make_click_train_data.py -------------------------------------------------------------------------------- /redshells/app/word_item_similarity/make_similarity_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/app/word_item_similarity/make_similarity_data.py -------------------------------------------------------------------------------- /redshells/contrib/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /redshells/contrib/app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /redshells/contrib/app/word_item_similarity/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /redshells/contrib/app/word_item_similarity/calculate_similarity_with_matrix_factorization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/contrib/app/word_item_similarity/calculate_similarity_with_matrix_factorization.py -------------------------------------------------------------------------------- /redshells/contrib/model/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/contrib/model/__init__.py -------------------------------------------------------------------------------- /redshells/contrib/model/early_stopping.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/contrib/model/early_stopping.py -------------------------------------------------------------------------------- /redshells/contrib/model/factorization_machine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/contrib/model/factorization_machine.py -------------------------------------------------------------------------------- /redshells/contrib/model/feature_aggregation_similarity_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/contrib/model/feature_aggregation_similarity_model.py -------------------------------------------------------------------------------- /redshells/contrib/model/gcmc_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/contrib/model/gcmc_dataset.py -------------------------------------------------------------------------------- /redshells/contrib/model/graph_convolutional_matrix_completion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/contrib/model/graph_convolutional_matrix_completion.py -------------------------------------------------------------------------------- /redshells/contrib/model/matrix_factorization_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/contrib/model/matrix_factorization_model.py -------------------------------------------------------------------------------- /redshells/contrib/model/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/contrib/model/utils.py -------------------------------------------------------------------------------- /redshells/contrib/train/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/contrib/train/__init__.py -------------------------------------------------------------------------------- /redshells/contrib/train/train_feature_aggregation_similarity_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/contrib/train/train_feature_aggregation_similarity_model.py -------------------------------------------------------------------------------- /redshells/contrib/train/train_graph_convolutional_matrix_completion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/contrib/train/train_graph_convolutional_matrix_completion.py -------------------------------------------------------------------------------- /redshells/contrib/train/train_matrix_factorization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/contrib/train/train_matrix_factorization.py -------------------------------------------------------------------------------- /redshells/data/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/data/__init__.py -------------------------------------------------------------------------------- /redshells/data/data_frame_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/data/data_frame_utils.py -------------------------------------------------------------------------------- /redshells/data/load_data_of_task.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/data/load_data_of_task.py -------------------------------------------------------------------------------- /redshells/data/load_existing_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/data/load_existing_file.py -------------------------------------------------------------------------------- /redshells/factory/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/factory/__init__.py -------------------------------------------------------------------------------- /redshells/factory/optuna_param_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/factory/optuna_param_factory.py -------------------------------------------------------------------------------- /redshells/factory/prediction_model_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/factory/prediction_model_factory.py -------------------------------------------------------------------------------- /redshells/factory/singleton.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/factory/singleton.py -------------------------------------------------------------------------------- /redshells/model/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/model/__init__.py -------------------------------------------------------------------------------- /redshells/model/lda_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/model/lda_model.py -------------------------------------------------------------------------------- /redshells/model/scdv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/model/scdv.py -------------------------------------------------------------------------------- /redshells/model/tdidf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/model/tdidf.py -------------------------------------------------------------------------------- /redshells/model/tfidf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/model/tfidf.py -------------------------------------------------------------------------------- /redshells/model/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/model/utils.py -------------------------------------------------------------------------------- /redshells/train/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/train/__init__.py -------------------------------------------------------------------------------- /redshells/train/train_binary_clasification_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/train/train_binary_clasification_model.py -------------------------------------------------------------------------------- /redshells/train/train_clasification_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/train/train_clasification_model.py -------------------------------------------------------------------------------- /redshells/train/train_dictionary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/train/train_dictionary.py -------------------------------------------------------------------------------- /redshells/train/train_doc2vec.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/train/train_doc2vec.py -------------------------------------------------------------------------------- /redshells/train/train_factorization_machine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/train/train_factorization_machine.py -------------------------------------------------------------------------------- /redshells/train/train_fasttext.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/train/train_fasttext.py -------------------------------------------------------------------------------- /redshells/train/train_lda_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/train/train_lda_model.py -------------------------------------------------------------------------------- /redshells/train/train_pairwise_similarity_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/train/train_pairwise_similarity_model.py -------------------------------------------------------------------------------- /redshells/train/train_scdv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/train/train_scdv.py -------------------------------------------------------------------------------- /redshells/train/train_tfidf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/train/train_tfidf.py -------------------------------------------------------------------------------- /redshells/train/train_word2vec.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/train/train_word2vec.py -------------------------------------------------------------------------------- /redshells/train/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/train/utils/__init__.py -------------------------------------------------------------------------------- /redshells/train/utils/token_iterator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/train/utils/token_iterator.py -------------------------------------------------------------------------------- /redshells/train/utils/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/redshells/train/utils/utils.py -------------------------------------------------------------------------------- /test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/contrib/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/contrib/model/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/contrib/model/test_feature_aggregation_similarity_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/test/contrib/model/test_feature_aggregation_similarity_model.py -------------------------------------------------------------------------------- /test/contrib/model/test_gcmc_graph_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/test/contrib/model/test_gcmc_graph_dataset.py -------------------------------------------------------------------------------- /test/contrib/model/test_gcmc_graph_dataset_map.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/test/contrib/model/test_gcmc_graph_dataset_map.py -------------------------------------------------------------------------------- /test/contrib/model/test_gcmc_id_map.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/test/contrib/model/test_gcmc_id_map.py -------------------------------------------------------------------------------- /test/contrib/model/test_graph_convolutional_matrix_completion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/test/contrib/model/test_graph_convolutional_matrix_completion.py -------------------------------------------------------------------------------- /test/contrib/train/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/contrib/train/test_gcmc_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/test/contrib/train/test_gcmc_dataset.py -------------------------------------------------------------------------------- /test/contrib/train/test_train_feature_aggregation_similarity_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/test/contrib/train/test_train_feature_aggregation_similarity_model.py -------------------------------------------------------------------------------- /test/model/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/model/test_tfidf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/test/model/test_tfidf.py -------------------------------------------------------------------------------- /test/train/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/train/test_train_doc2vec.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/test/train/test_train_doc2vec.py -------------------------------------------------------------------------------- /test/train/test_train_fasttext.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/test/train/test_train_fasttext.py -------------------------------------------------------------------------------- /test/train/test_train_lda_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/test/train/test_train_lda_model.py -------------------------------------------------------------------------------- /test/train/test_train_pairwise_similarity_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/test/train/test_train_pairwise_similarity_model.py -------------------------------------------------------------------------------- /test/train/test_train_word2vec.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/test/train/test_train_word2vec.py -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m3dev/redshells/HEAD/tox.ini --------------------------------------------------------------------------------