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.1.tar.gz (2.8 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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scikit_neutrosophic-0.0.1.tar.gz
  • Upload date:
  • Size: 2.8 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.1.tar.gz
Algorithm Hash digest
SHA256 6045144fd2371359151beb67a777bf4bcd27c317d821f839508ae5488e672260
MD5 a34a34ccaddddbc99a81020a04c437ac
BLAKE2b-256 54ca5339861157c495f1905906f03f6e837e12f1df5c4963b471aaadb1358c02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scikit_neutrosophic-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 665fc4d5b60fddc7f8b569bfb45093a0227c9c97c7ec1cc652beae4b23f5f14a
MD5 9f8e87832eded3f1f0ed02d219bdb9d9
BLAKE2b-256 d27438bdec60530b4e8a14678937b893e3baa09f7b89831e85762dcc92148c1c

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