Latte-cls1


NameLatte-cls1 JSON
Version 0.0.4 PyPI version JSON
download
home_page
Summarysimple classification algorithms
upload_time2023-07-15 07:39:23
maintainer
docs_urlNone
authorSebinmon Vr
requires_python
licenseMIT
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.3 (15/07/2023)
-------------------
-First Release

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "Latte-cls1",
    "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/f3/ce/760019160986419918582cdbfc96f3bcc7e38e165a323a1ef4880bb36c73/Latte-cls1-0.0.4.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.3 (15/07/2023)\r\n-------------------\r\n-First Release\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "simple classification algorithms",
    "version": "0.0.4",
    "project_urls": null,
    "split_keywords": [
        "latte_classifier"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8c5fc10b4306cd4a6ebf0da402f94faf73cde8afb4eb3b6be8a16433a6d56e55",
                "md5": "cadd15b3245204cc8583c4233d9f1201",
                "sha256": "098755ec0a972e1ad2b5a38ce272609ff8fd758d98d737c4efc8b1d12021b50e"
            },
            "downloads": -1,
            "filename": "Latte_cls1-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cadd15b3245204cc8583c4233d9f1201",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2763,
            "upload_time": "2023-07-15T07:39:19",
            "upload_time_iso_8601": "2023-07-15T07:39:19.817418Z",
            "url": "https://files.pythonhosted.org/packages/8c/5f/c10b4306cd4a6ebf0da402f94faf73cde8afb4eb3b6be8a16433a6d56e55/Latte_cls1-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f3ce760019160986419918582cdbfc96f3bcc7e38e165a323a1ef4880bb36c73",
                "md5": "2da5764b18024942b82be317b0d0ec57",
                "sha256": "2cfef13ab9f6b89dc70b108a1fbcae95bab7d9f0d645c8eee6ccc5685fea0de7"
            },
            "downloads": -1,
            "filename": "Latte-cls1-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "2da5764b18024942b82be317b0d0ec57",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4603,
            "upload_time": "2023-07-15T07:39:23",
            "upload_time_iso_8601": "2023-07-15T07:39:23.392467Z",
            "url": "https://files.pythonhosted.org/packages/f3/ce/760019160986419918582cdbfc96f3bcc7e38e165a323a1ef4880bb36c73/Latte-cls1-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-15 07:39:23",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "latte-cls1"
}
        
Elapsed time: 0.18433s