Skip to main content

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

cvip_labs-0.3.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cvip_labs-0.3.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file cvip_labs-0.3.0.tar.gz.

File metadata

  • Download URL: cvip_labs-0.3.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

Hashes for cvip_labs-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e814e2a7310a1805ef94254afd5fb04989cd87f24e78985ded40de05ae27708b
MD5 0cdb90dc9cc3a4e1c6e6964b18e996d8
BLAKE2b-256 5c81b9b745441b5fa6cf77dd02df10cf5efe02910fc4efa3a04b5285b7c23191

See more details on using hashes here.

File details

Details for the file cvip_labs-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: cvip_labs-0.3.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

Hashes for cvip_labs-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22d6e6542bf20f25114b80defa85a4e4e91ed75b654b0727a32d78ecb185aa99
MD5 7a377a090c338a023e709a11104e758c
BLAKE2b-256 b35e5f7d334038ec4c00d80c96fd50e4879deb87274db044c6b6824adc65b406

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page