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.4.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.4.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cvip_labs-0.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 5e4e5d7fa339eae2d32d98216d41bc7011e4b9480c22715204e0063fe741ee1b
MD5 4462f573bd379906c09017d505f5c476
BLAKE2b-256 4190113af44bd95dee2d33dec49d807b4c8ee61773a60ded80817b83fe911538

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cvip_labs-0.4.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0d01405ef034bace1bd90747c929aff1387ac1e6233db5e044fdd5a6db45a4b
MD5 401667e64f0cd203d305e5b26a288213
BLAKE2b-256 c6a1c6d0db28126a439dbfee5853e0cd97669a4f55ac91b7c0942cb7aa67f0ce

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