Skip to main content

Model Selection Tool

Project description

📦 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 line
  • plot: visualize
  • accuracy: 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.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

choose_models-0.1.5.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

choose_models-0.1.5-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file choose_models-0.1.5.tar.gz.

File metadata

  • Download URL: choose_models-0.1.5.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for choose_models-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6355ea37795524811af47dd44d392626ef55a686ba2315896a12669d69acea56
MD5 1d8f25ab5819937598d01f4a65b18e8a
BLAKE2b-256 45a39bb5f877e8cd6089d94d907074ec8a5db8b80c63468a1695217934b21e5f

See more details on using hashes here.

File details

Details for the file choose_models-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: choose_models-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for choose_models-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9cf9f353e2d09e3b0b9483bae41782d5bf90e02807aa89e6c62948698faaa3cb
MD5 5a81f4408ad96b07bbac3ad2f239b1a8
BLAKE2b-256 972801e9c92aa10bf20db71778cb7a99800bec7b678553be5f00a2c8e0f3056f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page