yascikit-learn
Yet another scikit-learn
Installation
pip install yascikit-learn
USAGE
Naive Bayes
Negation Naive Bayes
from yasklearn.naive_bayes import NegationNB
from sklearn import datasets
dataset = datasets.load_iris()
X = dataset.data
y = dataset.target
nnb = NegationNB().fit(X, y)
nnb.predict(X)
Selective Naive Bayes
from yasklearn.naive_bayes import SelectiveNB
from sklearn import datasets
dataset = datasets.load_iris()
X = dataset.data
y = dataset.target
snb = SelectiveNB().fit(X, y)
snb.predict(X)
Universal Set Naive Bayes
from yasklearn.naive_bayes import UniversalSetNB
from sklearn import datasets
dataset = datasets.load_iris()
X = dataset.data
y = dataset.target
unb = UniversalSetNB().fit(X, y)
unb.predict(X)
FTRLProximal
from yasklearn.ftrl_proximal import FTRLProximalClassifier
from sklearn import datasets
dataset = datasets.load_iris()
X = dataset.data
y = dataset.target
ftrlc = FTRLProximalClassifier().fit(X, y)
ftrlc.predict(X)
Topic modeling
PLSA
from yasklearn.decomposition import PLSA
from sklearn import datasets
dataset = datasets.load_iris()
X = dataset.data
plsa = PLSA(n_components=3, random_state=1).fit(X)
plsa.predict(X)
PLSV
Note that PLSV has not implemented predict method.
from yasklearn.decomposition import PLSV
from sklearn.datasets import fetch_20newsgroups
newsgroups = fetch_20newsgroups(subset='train')
X = list(map(lambda x: x.split(), newsgroups.data))
plsv = PLSV(n_components=20, n_dimension=2, random_state=1)
plsv.fit_transform(X)
Clustering
XMeans
from yasklearn.cluster import XMeans
from sklearn import datasets
dataset = datasets.load_iris()
X = dataset.data
xm = XMeans(n_clusters=3, random_state=1)
xm.fit_predict(X)
KMedoids
from yasklearn.cluster import KMedoids
from sklearn import datasets
dataset = datasets.load_iris()
X = dataset.data
km = KMedoids(n_clusters=3, random_state=1)
km.fit_predict(X)
XMedoids
from yasklearn.cluster import XMedoids
from sklearn import datasets
dataset = datasets.load_iris()
X = dataset.data
xm = XMedoids(n_clusters=3, random_state=1)
xm.fit_predict(X)
Utility
from yasklearn.model_selection import train_dev_test_split
import numpy as np
X = np.arange(10).reshape((5, 2))
y = range(5)
X_train, X_dev, X_test, y_train, y_dev, y_test = train_dev_test_split(
X, y, dev_size=0.33, random_state=1)
Metadata
Release files for yascikit-learn 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yascikit-learn-0.1.3.tar.gz | 14.0 kB | Without provenance | Details for yascikit-learn-0.1.3.tar.gz |
Release files / yascikit-learn-0.1.3.tar.gz
| Download URL | yascikit-learn-0.1.3.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6db8d1cff821d77913df4b05fb863e7f1adfc31d8912d2047e8f7e49bbdfbfb6
|
|
BLAKE2b-256 checksum How to use checksums |
f4467782104ccdda666ad6c45e11641654d4ab4cc80963a7cd303553fccc2c93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for yascikit-learn 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.