Name | latte-classifier JSON |
Version |
0.0.2
JSON |
| download |
home_page | |
Summary | simple classification algorithms |
upload_time | 2023-07-15 06:57:22 |
maintainer | |
docs_url | None |
author | Sebinmon Vr |
requires_python | |
license | MIT |
keywords |
latte_classifier
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
Latte
This is a simple package for data classification
-------------------------------------------------------------------------------------------
#Contents/functions
-------------------------------------------------------------------------------------------
# Linear Regression
The `linear(filename, cl1, cl2, predict_value)` function performs linear regression on a given dataset and predicts the value for a given input. It takes the following parameters:
- `filename`: The name of the CSV file containing the dataset.
- `cl1`: The column index of the independent variable (x).
- `cl2`: The column index of the dependent variable (y).
- `predict_value`: The input value for which the prediction is to be made.
The function calculates the slope and intercept of the regression line using the least squares method. It then plots the data points, regression line, and prediction. The function returns the slope, intercept, and prediction as results.
# Logistic Regression
The `logistic(filename, cl1, cl2, predict_value)` function performs logistic regression on a given dataset and predicts the probability and class for a given input. It takes the following parameters:
- `filename`: The name of the CSV file containing the dataset.
- `cl1`: The column index of the independent variable (x).
- `cl2`: The column index of the dependent variable (y).
- `predict_value`: The input value for which the prediction is to be made.
The function uses scikit-learn's `LogisticRegression` class to fit the logistic regression model and predict the probability and class for the input. It plots the data points, logistic regression curve, and prediction. The function returns the probability and prediction as results.
# Decision Tree Classification
The `dtree(filename, cl1, cl2, predict_value)` function performs decision tree classification on a given dataset and predicts the class for a given input. It takes the following parameters:
- `filename`: The name of the CSV file containing the dataset.
- `cl1`: The column index of the independent variable (x).
- `cl2`: The column index of the dependent variable (y).
- `predict_value`: The input value for which the prediction is to be made.
The function uses scikit-learn's `DecisionTreeClassifier` class to fit the decision tree model and predict the class for the input. It plots the data points, decision tree boundary, and prediction. The function returns the prediction as a result.
# Matrix Operations
The `matrix_ml(matrix1, matrix2)` function performs matrix multiplication on two given matrices. It takes the following parameters:
- `matrix1`: The first matrix.
- `matrix2`: The second matrix.
The function uses numpy's `dot` function to perform matrix multiplication and returns the result.
The `matrix_add(matrix1, matrix2)` function performs matrix addition on two given matrices. It takes the following parameters:
- `matrix1`: The first matrix.
- `matrix2`: The second matrix.
The function uses numpy's `add` function to perform matrix addition and returns the result.
Change Log
==========
0.0.2 (15/07/2023)
-------------------
-First Release
Raw data
{
"_id": null,
"home_page": "",
"name": "latte-classifier",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "latte_classifier",
"author": "Sebinmon Vr",
"author_email": "nthn8777@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/dc/2e/02bbe94738d6220e2cba62d1ca91c29d917c3a68a5d5afa8187a81d4fa32/latte_classifier-0.0.2.tar.gz",
"platform": null,
"description": " Latte\r\n\r\nThis is a simple package for data classification \r\n\r\n-------------------------------------------------------------------------------------------\r\n#Contents/functions\r\n-------------------------------------------------------------------------------------------\r\n# Linear Regression\r\n\r\nThe `linear(filename, cl1, cl2, predict_value)` function performs linear regression on a given dataset and predicts the value for a given input. It takes the following parameters:\r\n- `filename`: The name of the CSV file containing the dataset.\r\n- `cl1`: The column index of the independent variable (x).\r\n- `cl2`: The column index of the dependent variable (y).\r\n- `predict_value`: The input value for which the prediction is to be made.\r\n\r\nThe function calculates the slope and intercept of the regression line using the least squares method. It then plots the data points, regression line, and prediction. The function returns the slope, intercept, and prediction as results.\r\n\r\n# Logistic Regression\r\n\r\nThe `logistic(filename, cl1, cl2, predict_value)` function performs logistic regression on a given dataset and predicts the probability and class for a given input. It takes the following parameters:\r\n- `filename`: The name of the CSV file containing the dataset.\r\n- `cl1`: The column index of the independent variable (x).\r\n- `cl2`: The column index of the dependent variable (y).\r\n- `predict_value`: The input value for which the prediction is to be made.\r\n\r\nThe function uses scikit-learn's `LogisticRegression` class to fit the logistic regression model and predict the probability and class for the input. It plots the data points, logistic regression curve, and prediction. The function returns the probability and prediction as results.\r\n\r\n# Decision Tree Classification\r\n\r\nThe `dtree(filename, cl1, cl2, predict_value)` function performs decision tree classification on a given dataset and predicts the class for a given input. It takes the following parameters:\r\n- `filename`: The name of the CSV file containing the dataset.\r\n- `cl1`: The column index of the independent variable (x).\r\n- `cl2`: The column index of the dependent variable (y).\r\n- `predict_value`: The input value for which the prediction is to be made.\r\n\r\nThe function uses scikit-learn's `DecisionTreeClassifier` class to fit the decision tree model and predict the class for the input. It plots the data points, decision tree boundary, and prediction. The function returns the prediction as a result.\r\n\r\n# Matrix Operations\r\n\r\nThe `matrix_ml(matrix1, matrix2)` function performs matrix multiplication on two given matrices. It takes the following parameters:\r\n- `matrix1`: The first matrix.\r\n- `matrix2`: The second matrix.\r\n\r\nThe function uses numpy's `dot` function to perform matrix multiplication and returns the result.\r\n\r\nThe `matrix_add(matrix1, matrix2)` function performs matrix addition on two given matrices. It takes the following parameters:\r\n- `matrix1`: The first matrix.\r\n- `matrix2`: The second matrix.\r\n\r\nThe function uses numpy's `add` function to perform matrix addition and returns the result.\r\n\r\n\r\n\r\n\r\nChange Log\r\n==========\r\n\r\n0.0.2 (15/07/2023)\r\n-------------------\r\n-First Release\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "simple classification algorithms",
"version": "0.0.2",
"project_urls": null,
"split_keywords": [
"latte_classifier"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2f7e1719b6e4a60d6b0a2a22d2b986b9fed8c5f00c0710453635a5ecbc74472f",
"md5": "751d4cc2a3f7b6e3aca4fb7c2131cadc",
"sha256": "e68c66de52865faa48f0aab5d96219a800fb066a22d2a65577009ae7001fa271"
},
"downloads": -1,
"filename": "latte_classifier-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "751d4cc2a3f7b6e3aca4fb7c2131cadc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 2841,
"upload_time": "2023-07-15T06:57:20",
"upload_time_iso_8601": "2023-07-15T06:57:20.549316Z",
"url": "https://files.pythonhosted.org/packages/2f/7e/1719b6e4a60d6b0a2a22d2b986b9fed8c5f00c0710453635a5ecbc74472f/latte_classifier-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dc2e02bbe94738d6220e2cba62d1ca91c29d917c3a68a5d5afa8187a81d4fa32",
"md5": "9c866f86c76001fb515b2d5cef2b62eb",
"sha256": "019996de0cb7b2d4ee4b56d46de92d19f53b2019cdb3f499a24a1290f8bc312d"
},
"downloads": -1,
"filename": "latte_classifier-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "9c866f86c76001fb515b2d5cef2b62eb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4642,
"upload_time": "2023-07-15T06:57:22",
"upload_time_iso_8601": "2023-07-15T06:57:22.608452Z",
"url": "https://files.pythonhosted.org/packages/dc/2e/02bbe94738d6220e2cba62d1ca91c29d917c3a68a5d5afa8187a81d4fa32/latte_classifier-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-15 06:57:22",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "latte-classifier"
}