Views
No views yet
1{
2 "TFIDF_MAX_FEATURES_ST1": 80000,
3 "TFIDF_NGRAM_RANGE_ST1": [
4 1,
5 2
6 ],
7 "SVM_C_ST1": 2.0,
8 "TFIDF_MAX_FEATURES_ST2": 50000,
9 "TFIDF_NGRAM_RANGE_ST2": [
10 1,
11 2
12 ],
13 "SVM_C_HAZARD_ST2": 3.0,
14 "MIN_GROUP_SIZE": 10,
15 "SGD_ALPHA_PRODUCT": 3e-05,
16 "SGD_EPOCHS": 30,
17 "CONF_GAP": 0.15
18}preprocessor_st1.pkl: TF-IDF vectorizer and metadata encoder for ST1preprocessor_st2.pkl: TF-IDF vectorizer for ST2label_encoders.pkl: Label encoders for all target variablesprior_product.pkl: Prior product distribution by categoryst1_hazard_category_svm.pkl: ST1 hazard category classifierst1_product_category_svm.pkl: ST1 product category classifierst2_hazard_global.pkl: ST2 global hazard classifierst2_hazard_by_hcat.pkl: ST2 hazard classifiers grouped by hazard categoryst2_product_global.pkl: ST2 global product classifierst2_product_by_pcat.pkl: ST2 product classifiers grouped by product category1import pickle
2from huggingface_hub import hf_hub_download
3
4# Download and load models
5preprocessor_st1 = pickle.load(open(hf_hub_download(repo_id="Moongirl99/ensemble-models", filename="models/preprocessor_st1.pkl"), 'rb'))
6# ... load other models similarly