Skip to main content

py4logistic-regression

Logistic Regression Python Library

Getting Started

This project is simply implementation of logistic regression algorithm in python programming language.

Prerequisites

Numpy

Installing

The easiest way to install py4logistic-regression is using pip

pip install py4logistic-regression

Usage

There is 2 public method of Logistic Regression class. It is learn and predict method, learn method takes 5 argument namely x_train, t_train, alpha, and epoch. It is the training data, it's label, learning rate, and number of iteration respectively. predict method takes 1 argument namely x_test. It is the data to be predicted

from py4logistic_regression.regression import logistic_regression
x_train = [[0,0],[0,1],[1,0],[1,1]]
t_train = [0,0,0,1]
classifier = logistic_regression()
classifier.learn(x_train,t_train,0.1,50)
x_test = [[0.02,0.25],[0.97,0.89]]
y = classifier.predict(x_test)

Metadata

Release files for py4logistic-regression 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py4logistic-regression 0.0.4
File Size Uploaded Provenance
py4logistic_regression-0.0.4.tar.gz 2.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for py4logistic-regression 0.0.4
File Interpreter ABI Platform
py4logistic_regression-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 5.2 kB

Release files / py4logistic_regression-0.0.4.tar.gz

Download URL py4logistic_regression-0.0.4.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
14be784d48762a7a721549693b7e1bd2f2b5b2e49599cc92ccbcac7de35848ee
BLAKE2b-256 checksum
How to use checksums
81d1b953102f4b7569e427cf55f2ce86a2cbc62b10468977d8f0f09547e3efcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1

Release files / py4logistic_regression-0.0.4-py3-none-any.whl

Download URL py4logistic_regression-0.0.4-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff9a9fd6b0adf9e725f7bd6e87005f0147f923d0cbba11c3bc629e43e8aa94a3
BLAKE2b-256 checksum
How to use checksums
07e4893145ec4351b3167c151808b31efe977f64c24a993f3f44e7d78f670bf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1

Security for py4logistic-regression 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page