CVIP 6th sem lab helpers - MNIST and CNN experiments
Project description
cvip_labs
CVIP 6th sem lab helpers.
Install
pip install cvip_labs
Exp 4 - MNIST SVM + Neural Network
from cvip_labs import run_exp4 X_train, X_test, y_train, y_test = run_exp4.load_data() svm_model = run_exp4.train_svm(X_train, y_train) svm_acc = run_exp4.evaluate(svm_model, X_test, y_test) nn_model = run_exp4.train_nn(X_train, y_train, epochs=5) nn_acc = run_exp4.evaluate_nn(nn_model, X_test, y_test) run_exp4.plot_results()
Exp 5 - CNN Image Classifier
from cvip_labs import run_exp5 train, val, test, class_names = run_exp5.load_data(data_dir='exp5') model = run_exp5.build_model() model.summary() hist = run_exp5.train_model(model, train, val, epochs=20) run_exp5.plot_results(hist) run_exp5.evaluate(model, test) run_exp5.predict(model, class_names, img_path='images6.jpg') run_exp5.save_model(model)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cvip_labs-0.2.0.tar.gz.
File metadata
- Download URL: cvip_labs-0.2.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d3c938c0cc5f2557426fc6017bc3fdc612ac5e170cead34e89fab541915d879
|
|
| MD5 |
e1979b02e614312bce50950dd71ce7dc
|
|
| BLAKE2b-256 |
3e722a4a4e5e48cfd3690f7ee6b3c532ed82a817593a7089206b4ed5bb562ea1
|
File details
Details for the file cvip_labs-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cvip_labs-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44323a41385c3f04266395806940f5dee41635a77e69555e954d490528614741
|
|
| MD5 |
55da7222e0a2e3cffc2bd6114112b08f
|
|
| BLAKE2b-256 |
83214de4f7d5d00368f451d0c04f423bb286f2be5d5865e2289f45ce2d550ae6
|