Skip to main content

Neutrosophic Machine Learning Algorithms

Project description

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.

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

scikit_neutrosophic-0.0.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scikit_neutrosophic-0.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file scikit_neutrosophic-0.0.2.tar.gz.

File metadata

  • Download URL: scikit_neutrosophic-0.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for scikit_neutrosophic-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4f674326229175f7ba0af3393af9779764562b09314819c43c1ebba05063984b
MD5 89be39ea28524ba78a036051fffd8eba
BLAKE2b-256 5f16fa30bc7096087860e07b5b47194276d8a7dad0610e42cecc9e3d7f6c4775

See more details on using hashes here.

File details

Details for the file scikit_neutrosophic-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for scikit_neutrosophic-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cfa33683aa4d75fcd02498ddefb2e2ba7cb0733bae05acaad21c11ecaeefde57
MD5 c6dfda4dcfafaa9103e919d44b3b9f1a
BLAKE2b-256 9c60176de6736788d2ae8e445917c46b72bf26f342be444b0bc31e0df226082c

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