Skip to main content

Tf-Idf-CategoryWeighting

Project description

Tf-Idf-CategoryWeighting

Train Data Format

Y_train

X_train

game

The LoL champions pro players would ban forever

society

In Beijing you should keep the rules

etc.

etc.

Sample Usage

>>> import TfIdfCategoryWeighting
            #creat vectorizer
>>> Tf_idf_cw_vectorizer = TfIdfCategoryWeighting.TfidfPro_Vectorizer(use_idf=True,use_Wt=True)
            #train vectorizer
>>> Tf_idf_cw_vectorizer.fit(X_train,Y_train)
            #transform word to vector
>>> X_train = Tf_idf_cw_vectorizer.transform(X_train)

Installation

$ pip install Tf-Idf-CategoryWeighting

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Tf-Idf-CategoryWeighting-0.0.0.tar.gz (14.3 kB view details)

Uploaded Source

File details

Details for the file Tf-Idf-CategoryWeighting-0.0.0.tar.gz.

File metadata

File hashes

Hashes for Tf-Idf-CategoryWeighting-0.0.0.tar.gz
Algorithm Hash digest
SHA256 e4677b170a38a2faafe9afb6f8e1fa713c086f28a9d508dfcdfda5e6229e04fa
MD5 341eff12ccfe184decdee77d883bcdee
BLAKE2b-256 0700b2fb4960b8ce16fc21e1ebd80a723b73f58d61068a1688e471613933ef30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page