📦 Models Class – Regression Models Playground
This class helps you quickly test different regression algorithms (OLS, SGD, BGD) on any DataFrame and target.
✂️ split_data(ratio=0.8, randomState=42)
Splits data into train/test based on ratio.
Uses self.target_column to separate X and y.
📈 Linear_Regression_OLS(get_equation=False, plot=False, accuracy=True)
Trains simple (1D) Linear Regression using Ordinary Least Squares.
get_equation: print learned lineplot: visualizeaccuracy: print score
📊 MLinear_Regression_OLS(get_equation=False, plot=False, accuracy=True)
Multi-feature version of OLS Linear Regression.
⚡ MLinear_Regression_SGD(epochs=100, learning_rate=0.01, plot=False, accuracy=True, get_equation=False)
Multi-feature SGD Linear Regression. Trains with Stochastic Gradient Descent.
🌀 Linear_Regression_BGD(epochs=100, learning_rate=0.01, plot=False, accuracy=True, get_equation=False)
Simple (1D) Linear Regression using Batch Gradient Descent.
💪 MLinear_Regression_BGD(epochs=100, learning_rate=0.01, plot=False, accuracy=True, get_equation=False)
Multi-feature BGD-based Linear Regression.
🧼 Standard_Scale(features=None)
Standardizes features (z-score normalization). Applies to entire DataFrame if no features are specified. Re-splits data after scaling.
🚀 Linear_Regression_SGD(epochs=100, learning_rate=0.01, plot=False, accuracy=True, get_equation=False)
Simple (1D) Linear Regression using SGD.
📤 Extract_Data()
Returns (X_train, X_test, y_train, y_test) — useful for external use.
🆕 Set_DF(newDF, target_column)
Reset the class with a new DataFrame and target column.
🔀 Select_Model(model=None, batch_size=None, method=None, epochs=100, learning_rate=0.01, plot=False, accuracy=True, get_equation=False)
Unified interface to select and run any regression model or method.
model: Choose'linear_regression'('lr') or'multi_linear_regression'('mlr')method: Specify algorithm ('ols','bgd','sgd','mgbd')batch_size: For mini-batch gradient descent ('mgbd')- Other arguments are passed to the underlying method
Raises ValueError if model or method is unknown.
Metadata
Release files for choose-models 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| choose_models-0.1.6.tar.gz | 6.5 kB | Without provenance | Details for choose_models-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| choose_models-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for choose_models-0.1.6-py3-none-any.whl |
Total release size: 12.5 kB
Release files / choose_models-0.1.6.tar.gz
| Download URL | choose_models-0.1.6.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1dea556b5623b5a012b4ef37508c06d89a14b27312fd7f0f651ae8eeebffff58
|
|
BLAKE2b-256 checksum How to use checksums |
97f88b488ee24a33b3b38001f397afc20901e4fd3dbc80f99c227a9b905de87b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.11
|
Release files / choose_models-0.1.6-py3-none-any.whl
| Download URL | choose_models-0.1.6-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52a677a87ad88ec5cf4fad8cff5d79b6e0858cf10dce2f61e5002db648a456d9
|
|
BLAKE2b-256 checksum How to use checksums |
5383b61afdde87366ca4d1379bceefc11918df05a9c5188b6b1a18b621da317d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.11
|
Security for choose-models 0.1.6
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.