Skip to main content

This is a simple Python package that aims to make using linear regression easier for programmers.

You can create a simple linear regression model as following:

from regrez import Models

m = Models.Simple("path/to/csv", "label for column that'll be used for x axis", "label for column that'll be used for y axis")

After that, you can train your model using m.Train() and test using m.Test(test_x, test_y). Alternatively, there is a function called m.TrainAndTest() you can use if you only want to see how accurate would the model work. It separates 20% of the data for testing, trains the model with the rest of it, tests the model with separated data and shows how accurate your model is. You can use m.Visualize() after training if you want to see a plot showing both data points and the line to see how relative your variables are.

You can create a multiple regression model as following:

from regrez import Models
m = Models.Multiple("path/to/csv", ["X Label 1", "X Label 2", "X Label 3"], ["Y Label"])

After that, you can train your model using m.Train() and test using m.Test(test_x, test_y). Alternatively, there is a function called m.TrainAndTest() you can use if you only want to see how accurate would the model work. It separates 20% of the data for testing, trains the model with the rest of it, tests the model with separated data and shows how accurate your model is. There is no m.Visualize() for multiple linear regression models.

Release files for regrez 2.1.9

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

Source distribution (sdist)

Source distribution for regrez 2.1.9
File Size Uploaded
regrez-2.1.9.tar.gz 2.8 kB Details

Release files / regrez-2.1.9.tar.gz

Download URL regrez-2.1.9.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a6a34010f83f566d67aba1d96e74ac1b94a7ef0c3a4ddbf3813ee5b171af793d
BLAKE2b-256 checksum
How to use checksums
6280f8faf828a6e413507df314d0393f50f85807fa7c2ba244b17a005326182a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

2.1.9 This release

1 release file

2.1.8

2 release files

2.1.7

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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