A Python package that provides various machine learning algorithms, including Artificial Neural Networks (ANNs), Bayesian Networks, K-Means clustering, K-Nearest Neighbors (KNN), and decision trees (ID3). It also includes algorithms like Candidate Elimination, Find-S, and Naive Bayes, along with Local Weighted Regression.
- ANN: Implementation of an Artificial Neural Network with a single hidden layer.
- Bayesian Network: Build a Bayesian Network and perform inference using the
pgmpy
library. - K-Means Clustering: Perform K-Means clustering using
scikit-learn
. - KNN: K-Nearest Neighbors classification using
scikit-learn
. - Candidate Elimination Algorithm: Perform hypothesis elimination to find the most specific/general hypothesis.
- Find-S Algorithm: Find the maximally specific hypothesis from training examples.
- ID3 Decision Tree: Build a decision tree using the ID3 algorithm.
- Naive Bayes Classifier: A simple Naive Bayes classifier.
- Local Weighted Regression: Perform regression using locally weighted linear regression.
You can install the package using pip
:
pip install uvceml
import uvceml
- Artificial Neural Network (ANN)
from uvceml import ANN
ANN()
- Bayesian Network
from uvceml import bayes_network
input_file = 'path_to_csv_file.csv'
bayes_network(input_file)
- K-Means Clustering
from uvceml import k_means
k_means()
- KNN
from uvceml import knn
knn()
- Candidate Elimination
from uvceml import candidate
input_file = 'path_to_csv_file.csv'
candidate(input_file)
- Find-S Algorithm
from uvceml import find_s
input_file = 'path_to_csv_file.csv'
find_s(input_file)
- ID3 Decision Tree
from uvceml import ID3
input_file = 'path_to_csv_file.csv'
ID3(input_file)
- Naive Bayes Classifier
from uvceml import NaiveBayes
input_file = 'path_to_csv_file.csv'
NaiveBayes(input_file)
- Local Weighted Regression
from uvceml import regression
input_file = 'path_to_csv_file.csv'
regression(input_file)
This package requires the following libraries:
numpy pandas scikit-learn pgmpy matplotlib You can install these using pip: pip install numpy pandas scikit-learn pgmpy matplotlib
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to contribute by submitting a pull request or opening an issue.
Happy coding!