Skip to main content

dlpml

dlpml is a minimalist machine learning library implemented in Python. It provides simple and efficient tools for data analysis and machine learning, including linear regression and logistic regression models.

Features

  • Linear Regression
  • Logistic Regression
  • Regularization
  • Gradient Descent Optimization

Installation

To install the required dependencies, use Poetry:

poetry install

Usage (check notebooks)

Linear Regression

import pandas as pd
from dlpml.regression.linear_regressor import LinearRegressor

# Load dataset
data = pd.read_csv("data/ex_linear_regression_data1.csv", header=None)
X_train = data.iloc[:, [0]].to_numpy()
y_train = data.iloc[:, 1].to_numpy()

# Initialize and fit the model
model = LinearRegressor(alpha=0.01, iterations=10000, lambda_=0.01)
model.fit(X_train, y_train)

# Make predictions
y_pred = model.predict(X_train)

Logistic Regression

import pandas as pd
from dlpml.classification.logistic_regressor import LogisticRegressor

# Load dataset
data = pd.read_csv("data/ex_logistic_regression_data1.csv")
X_train = data.iloc[:, 0:2].to_numpy()
y_train = data.iloc[:, 2].to_numpy()

# Initialize and fit the model
model = LogisticRegressor(alpha=0.01, iterations=10000, lambda_=0.01)
model.fit(X_train, y_train)

# Make predictions
y_pred = model.predict(X_train)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for dlpml 0.1.0

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

Source distribution (sdist)

Source distribution for dlpml 0.1.0
File Size Uploaded Provenance Actions
dlpml-0.1.0.tar.gz 4.7 kB Without provenance Details for dlpml-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dlpml 0.1.0
File Interpreter ABI Platform Actions
dlpml-0.1.0-py3-none-any.whl Python 3 none any Details for dlpml-0.1.0-py3-none-any.whl

Total release size: 11.9 kB

Release files / dlpml-0.1.0.tar.gz

Download URL dlpml-0.1.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
47a0457920d5ba711342e2d987f177310f036e9b5eb5f9ba824bc82e59e6d989
BLAKE2b-256 checksum
How to use checksums
4e7290560380868350bca8cfde14a1f02254b17d4cd37435bb52041760e6c4d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-49-generic

Release files / dlpml-0.1.0-py3-none-any.whl

Download URL dlpml-0.1.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
362c2870a625aea8581d32574689a72db59db3d385489144646747261749ed9f
BLAKE2b-256 checksum
How to use checksums
0ef3abecd26df2f96dc8fe47c93bcff739bd099e453b5e1d07ce69ed5dc21457
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-49-generic

Security for dlpml 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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