Skip to main content

rocket

Description

This project implements a simple Linear Regression model in Python. It calculates the slope and intercept from training data and uses them to make predictions.

Features

  • Train a linear regression model.
  • Calculate the slope and intercept.
  • Predict values using the trained model.
  • Validate the input data.

Installation

Install the package locally using pip:

pip install .

Usage

from linear_regression import LinearRegression

# Create training data
x = [1, 2, 3, 4, 5]
y = [2, 4, 5, 4, 5]

# Create and train the model
model = LinearRegression()
model.fit(x, y)

# Make predictions
predictions = model.predict([6, 7])

print("Slope:", model.slope)
print("Intercept:", model.intercept)
print("Predictions:", predictions)

Requirements

  • Python 3

Metadata

Release files for sara-linear-regression-practice-2026 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 sara-linear-regression-practice-2026 0.1.0
File Size Uploaded Provenance Actions
sara_linear_regression_practice_2026-0.1.0.tar.gz 2.8 kB Without provenance Details for sara_linear_regression_practice_2026-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sara-linear-regression-practice-2026 0.1.0
File Interpreter ABI Platform Actions
sara_linear_regression_practice_2026-0.1.0-py3-none-any.whl Python 3 none any Details for sara_linear_regression_practice_2026-0.1.0-py3-none-any.whl

Total release size: 6.2 kB

Release files / sara_linear_regression_practice_2026-0.1.0.tar.gz

Download URL sara_linear_regression_practice_2026-0.1.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1d59541975a40e454a459dbd4a2511d59c326c4975172a0c727e1499dd304f98
BLAKE2b-256 checksum
How to use checksums
9108d061d5ebe3f8aca53ac5738264e75097dce8f006b7c9463101e353a5361b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

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

Download URL sara_linear_regression_practice_2026-0.1.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e04bdc9adaa7fcd7de1c1861b7ed26055589980e4db2c1114720011f07a3777
BLAKE2b-256 checksum
How to use checksums
8a4fe3b6fdd1674f7cf0efb42c422f6c972a41c035ddc3f1f0e333e2eacc7ab4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for sara-linear-regression-practice-2026 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