scikit-neutrosophic
A Python library for Neutrosophic Machine Learning Algorithms.
Installation
You can install the library using pip:
pip install scikit-neutrosophic
Usage
Neutrosophic k-NN
from scikit_neutrosophic.neutrosophic_knn import NeutrosophicKNN
# Example usage
import numpy as np
X_train = np.array([[1, 2], [2, 3], [3, 4], [4, 5]])
y_train = np.array([0, 1, 0, 1])
knn = NeutrosophicKNN(k=3)
knn.fit(X_train, y_train)
print(knn.predict(np.array([[2, 3]])))
Neutrosophic SVM
from scikit_neutrosophic.neutrosophic_svm import NeutrosophicSVM
svm = NeutrosophicSVM()
svm.fit(X_train, y_train, neutrosophic_params=None)
print(svm.predict(np.array([[2, 3]])))
Neutrosophic Linear Regression
from scikit_neutrosophic.neutrosophic_linear_regression import NeutrosophicLinearRegression
reg = NeutrosophicLinearRegression()
reg.fit(X_train[:, 0], y_train, neutrosophic_params=None)
print(reg.predict(np.array([2, 3, 4])))
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
License
This project is licensed under the MIT License.
Release files for scikit-neutrosophic 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scikit_neutrosophic-0.0.2.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scikit_neutrosophic-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / scikit_neutrosophic-0.0.2.tar.gz
| Download URL | scikit_neutrosophic-0.0.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f674326229175f7ba0af3393af9779764562b09314819c43c1ebba05063984b
|
|
BLAKE2b-256 checksum How to use checksums |
5f16fa30bc7096087860e07b5b47194276d8a7dad0610e42cecc9e3d7f6c4775
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / scikit_neutrosophic-0.0.2-py3-none-any.whl
| Download URL | scikit_neutrosophic-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfa33683aa4d75fcd02498ddefb2e2ba7cb0733bae05acaad21c11ecaeefde57
|
|
BLAKE2b-256 checksum How to use checksums |
9c60176de6736788d2ae8e445917c46b72bf26f342be444b0bc31e0df226082c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|