Rdige Model
Project description
Ridge Model
Features
- Comprehensive Metrics: This model can be used for Regression.
Installation
Install the package using pip:
pip install IM_Ridge
#Import Necessary Functions:
from IM_Metrics import Save_Metrics
from IM_Ridge import Ridge
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from IM_Metrics import Save_Metrics
df = pd.read_excel('KR-F-10Lags-t3.xlsx')
n,m=df.shape
X=df.iloc[:,0:(m-1)]
y=df.iloc[:,(m-1)]
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.30,random_state=None,shuffle=False)
C_Ridge = 0.1
theta, y_train_pred, y_test_pred = Ridge(X_train, y_train, X_test, C_Ridge)
metrics_filename = 'Results of Ridge.xlsx'
Save_Metrics(y_train, y_train_pred, y_test, y_test_pred,metrics_filename)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
im_ridge-0.0.2.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file im_ridge-0.0.2.tar.gz
.
File metadata
- Download URL: im_ridge-0.0.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7446d33f526ecd7cc5f902c07fc78b2444d6892132d61efe005bf8d25713351c |
|
MD5 | 2d2c75c152117fd22a40242ced08c845 |
|
BLAKE2b-256 | 20c8f23e99a04667352f9fa5cf7b70f7ce1d85a6647650f7da507e3367b82b33 |
File details
Details for the file IM_Ridge-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: IM_Ridge-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee4dfbca605db11a198f90a89d958a8e2e3cac1189e99a95d2628574d3fc7e49 |
|
MD5 | ad2351e81137586c2aca81d2a476ca32 |
|
BLAKE2b-256 | 703a4f2ffff51dab231f51b133920cf9b16cb8b130e9c3cc430a8091ec016905 |