Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

vidyasagar786
/
document-classifier-xgb

Text Classification
Scikit-learn
English
document-classification
xgboost
tfidf
Model card Files Files and versions
xet
Community

Instructions to use vidyasagar786/document-classifier-xgb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Scikit-learn

    How to use vidyasagar786/document-classifier-xgb with Scikit-learn:

    from huggingface_hub import hf_hub_download
    import joblib
    model = joblib.load(
    	hf_hub_download("vidyasagar786/document-classifier-xgb", "sklearn_model.joblib")
    )
    # only load pickle files from sources you trust
    # read more about it here https://skops.readthedocs.io/en/stable/persistence.html
  • Notebooks
  • Google Colab
  • Kaggle
document-classifier-xgb
10.6 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
vidyasagar786's picture
vidyasagar786
Upload README.md with huggingface_hub
ea5f538 verified 3 months ago
  • .gitattributes
    1.52 kB
    initial commit 3 months ago
  • README.md
    2.67 kB
    Upload README.md with huggingface_hub 3 months ago
  • document_classifier_xgb.pkl

    Detected Pickle imports (10)

    • "builtins.bytearray",
    • "sklearn.feature_extraction.text.TfidfVectorizer",
    • "xgboost.core.Booster",
    • "numpy.dtype",
    • "numpy.ndarray",
    • "sklearn.feature_extraction.text.TfidfTransformer",
    • "xgboost.sklearn.XGBClassifier",
    • "numpy.float64",
    • "collections.OrderedDict",
    • "joblib.numpy_pickle.NumpyArrayWrapper"

    How to fix it?

    10.4 MB
    xet
    Upload document_classifier_xgb.pkl with huggingface_hub 3 months ago
  • feature_importance.png
    89.1 kB
    Upload feature_importance.png with huggingface_hub 3 months ago
  • predict_document.py
    4.2 kB
    Upload predict_document.py with huggingface_hub 3 months ago
  • train_model.py
    5.55 kB
    Upload train_model.py with huggingface_hub 3 months ago
  • training_curve.png
    45.5 kB
    Upload training_curve.png with huggingface_hub 3 months ago