Installation :
python 3.9 : pip install MLAlgos==1.0.0
python 3.10 : pip install MLAlgos==1.0.1
python 3.11 : pip install MLAlgos==1.0.2
Example:
from MLRegressions import Regressors
import pandas as pd
df = pd.read_csv('Sampledata.csv')
x = df.iloc[:,1:-1].values # Features
y = df.iloc[:,-1].values # Depended Variable
reg = Regressors(x,y,skip_regressor=[],poly_degree=5, test_size=0.2, random_state=0)
obj = reg.fit_models() # To train Models & return class obj [LinearRegression(), LinearRegression(), SVR(), DecisionTreeRegressor(random_state=0), RandomForestRegressor(n_estimators=10, random_state=0)]
Linear Regression : obj[0].predict()
Polynomial Regression : obj[1].predict()
SVR : obj[2].predict()
DecisionTreeRegressor : obj[3].predict()
RandomForestRegressor : obj[4].predict()
data = reg.r2_score() # To get r2_scores data for train test set.
reg.plot_train_data() # To plot graphs for Trained set.
Release files for MLAlgos 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mlalgos-1.0.0.tar.gz | 62.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| MLAlgos-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 123.6 kB
Release files / mlalgos-1.0.0.tar.gz
| Download URL | mlalgos-1.0.0.tar.gz |
|---|---|
| Size | 62.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
436de8af91ed1874e1de3a59b8cf311a1a88dee1b1dc1dbfb31089d6ca4a86a7
|
|
BLAKE2b-256 checksum How to use checksums |
aacc73328e151c74c759562e256c833901395bb7f2a78c7916fc20c15106144b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.7
|
Release files / MLAlgos-1.0.0-py3-none-any.whl
| Download URL | MLAlgos-1.0.0-py3-none-any.whl |
|---|---|
| Size | 61.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42f792ce85d185fc61a6be4de3f3d7a8ebc70c8828bcbde44fb89c2d9027e613
|
|
BLAKE2b-256 checksum How to use checksums |
a3ca2ac7e32cc36448edd9d3099e29bd7b673547e7dc7fb2922549aed8758824
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.7
|