Skip to main content

pypi url :: [https://pypi.org/project/ml-models/] This repository is stacked with the multiple ml models looped over certain times,

The User can install the ml_models and use the project as shown in driver package.

The data needs to be concise and at last you'll have a table generated over different ml models with different evaluation technique. With this you can directly check the model to use for.

from ml_models import *
from ml_models.build_model import build_table

random_forest_classifier= RandomForestClassifier(n_estimators= 10, criterion="entropy")  

# for decision Tree
# Create Decision Tree classifer object
decision_tree = DecisionTreeClassifier()


nn = MLPClassifier(solver='lbfgs', alpha=1e-5,
                     hidden_layer_sizes=(1), random_state=1)



if __name__ == '__main__':
       # reading the csv file
    df = pd.read_csv("data.csv")
    X = df.iloc[:, :-1] # Features
    y = df.iloc[:, -1] # Target variable

    li_df = []
    for i in range(0,10):
        li_df.append(build_table(X,y,[decision_tree,"Decision Tree",False],
                                [nn, "Artificial Neural Network",True]))

    averages = pd.concat([each.stack() for each in li_df],axis=1)\
                .apply(lambda x:x.mean(),axis=1)\
                .unstack()
    print(averages)


Release files for ml-models 0.1.7

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

Source distribution (sdist)

Source distribution for ml-models 0.1.7
File Size Uploaded
ml_models-0.1.7.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ml-models 0.1.7
File Interpreter ABI Platform
ml_models-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size:13.1 kB

Release files / ml_models-0.1.7.tar.gz

Download URL ml_models-0.1.7.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e61b9a5b8a75655201e38a46cca41f5724f8bd60838ae95ea30e0be4688c627d
BLAKE2b-256 checksum
How to use checksums
b03255b5fc204c1bca15aa32bb17ad537e9ff84d2f34b30afd6110acf41e35fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.8.10 Linux/5.11.0-37-generic

Release files / ml_models-0.1.7-py3-none-any.whl

Download URL ml_models-0.1.7-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f90dac34ef5b6d9361c36fb1575c7dc8faecb003052a6924d1060b349971096a
BLAKE2b-256 checksum
How to use checksums
1ccb54999b85b15b814d84011aaf452dfa4f9c6025ad21128b10df368d0d9572
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.8.10 Linux/5.11.0-37-generic

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.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