A svm classifier model for predicting license short_name
Project description
About
This is a simple python package of Linear support vector machine model trained on the Minerva dataset. The trained model can be used to predict the license shortname from the code.
How to use
- Installing the package:
pip install linearsvc
- Import the trained model:
from linearsvc import linearsvc
- How to use:
- By calling sklearn's predict function:
classifier = linearsvc(processed_comment)predictor = classifier.classify()short_name = predictor.predict(processed_comment) - By directly calling predict_shortname():
classifier = linearsvc(processed_comment)short_name = classifier.predict_shortname()
- By calling sklearn's predict function:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
linearsvc-1.0.1.tar.gz
(12.4 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
linearsvc-1.0.1-py3-none-any.whl
(12.8 MB
view details)
File details
Details for the file linearsvc-1.0.1.tar.gz.
File metadata
- Download URL: linearsvc-1.0.1.tar.gz
- Upload date:
- Size: 12.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2fe219980c84325f9946d196afb695d7ef56bd03959f32f2b864cb8da79c2dd
|
|
| MD5 |
55ec7b0f2b1f413e78f69aabc2a0f9d1
|
|
| BLAKE2b-256 |
82a1cc523e26402664e9351a985e19adef6b7c11ebf901db5ce4da1013225440
|
File details
Details for the file linearsvc-1.0.1-py3-none-any.whl.
File metadata
- Download URL: linearsvc-1.0.1-py3-none-any.whl
- Upload date:
- Size: 12.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a0158d42033b0daf7d675847ced74229754aceb3bc9715acaa9ebf1639dea7a
|
|
| MD5 |
2bb6ec577537f8952a571a9a0097052c
|
|
| BLAKE2b-256 |
7f01f45afc8c942690fb9747c9294d04c21b0433566a099a4394e55a2a24e3f4
|