Skip to content

Commit

Permalink
Update Package Name
Browse files Browse the repository at this point in the history
  • Loading branch information
adnankarol authored and adnankarol committed Aug 1, 2024
1 parent f1e3dbb commit 7b51b5a
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 35 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Machine Learning Classification Python Package
# classifierAgent: Machine Learning Classification Python Package

![Python](https://img.shields.io/badge/Python-3776AB?style=for-the-badge&logo=python&logoColor=white)
![Scikit-Learn](https://img.shields.io/badge/scikit_learn-F7931E?style=for-the-badge&logo=scikit-learn&logoColor=white)
Expand Down Expand Up @@ -47,15 +47,15 @@ The package takes the following parameters as input:
Make sure you have Python installed on your system. You can install the package using pip:

```sh
pip install classifier_agent
pip install classifierAgent
```

# Usage

Here's an example of how to use the package:

```python
from classifier_agent import classifier_agent
from classifierAgent import classifierAgent

dataset_path = "diabetes.csv"
output_column = "Outcome"
Expand All @@ -66,7 +66,7 @@ save_models = True # Whether to save models
show_confusion_matrix = True # Whether to plot the confusion matrix
show_classification_report = True # Whether to print the classification report

results = classifier_agent(dataset_path, output_column, train_test_ratio, scaling_method, perform_grid_search, save_models, show_confusion_matrix, show_classification_report)
results = classifierAgent(dataset_path, output_column, train_test_ratio, scaling_method, perform_grid_search, save_models, show_confusion_matrix, show_classification_report)
print(results)
```

Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from classifier_agent import classifier_agent
from classifierAgent import classifer
2 changes: 1 addition & 1 deletion classifier_agent.py → classifierAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def plot_confusion_matrix(y_true, y_pred, model_name, show_plot=True):
if show_plot:
plt.show()

def classifier_agent(dataset, output_column, train_test_ratio, scaling_method=None, perform_grid_search=False, save_models=False, show_confusion_matrix=False, show_classification_report=False):
def classifierAgent(dataset, output_column, train_test_ratio, scaling_method=None, perform_grid_search=False, save_models=False, show_confusion_matrix=False, show_classification_report=False):
"""
Trains multiple classifiers on the provided dataset and returns their performance metrics.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def parse_requirements(filename):
return [line.strip() for line in file if line.strip() and not line.startswith("#")]

setup(
name='classifier_agent',
name='classifierAgent',
version='1.0.1', # Updated version number
description='A Python package for performing classification on datasets in CSV or Excel format.',
long_description=long_description,
Expand All @@ -40,7 +40,7 @@ def parse_requirements(filename):
install_requires=parse_requirements('requirements.txt'),
entry_points={
'console_scripts': [
'classifier_agent=classifier_agent.__main__:main',
'classifierAgent=classifierAgent.__main__:main',
],
},
project_urls={
Expand Down
55 changes: 28 additions & 27 deletions test_package.ipynb

Large diffs are not rendered by default.

0 comments on commit 7b51b5a

Please sign in to comment.