nista_learn
This is a Python ML librabry like scikit-learn
You can create your ML model or use some ML algorithms on your project
Example: Logistic Regression
Read csv file and slip data into training and test data
import pandas as pd
df = pd.read_csv('Data_for_UCI_named.csv', header=0)
df['stabf'] = df['stabf'].map({'unstable': 0, 'stable': 1})
Y = df['stabf'].values
# sometimes it's needed to reshape data
X = df.drop(['stabf'], axis=1).values
X_train = X[:9000]
Y_train = Y[:9000]
X_test = X[9000:]
Y_test = Y[9000:]
Let’s use our library ```` # call the LogisticRegression class from nista_learn.regressions import LinearRegression, LogisticRegression
log_reg = LogisticRegression() # fitting data log_reg.fit(X_train, Y_train, iterations=200000, learning_rate=0.25, show=True) # predict a small dataset y_pred = log_reg.predict(X_test[20:28]) print(’— small value —’) print(Y_test[20:28]) print(’— predicted data —‘) print(y_pred) # plotting the cost function log_reg.plot_cost() ```
Metadata
Release files for nista_learn 0.0.3
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 | |
|---|---|---|---|---|
| nista_learn-0.0.3.tar.gz | 3.0 kB | Without provenance | Details |
Release files / nista_learn-0.0.3.tar.gz
| Download URL | nista_learn-0.0.3.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b830b06df4360c0714dbd903f104155ceca76317f41bc6d9a939d7a3507fc7ad
|
|
BLAKE2b-256 checksum How to use checksums |
cc452125420f8bfc5e14857beb192bd15ead5d4eddfb6a2b0956f713d3b3da17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for nista_learn 0.0.3
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.