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.1.0.tar.gz (4.3 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.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cvip_labs-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 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.1.0.tar.gz
Algorithm Hash digest
SHA256 7d323adbe78656b320703e4c5b1d6ae22ef1440826988c759ff390f2de306c64
MD5 516f8cbbd25303acd3fcd30dd19c0383
BLAKE2b-256 d21f2065f5581c9326347c94d5b7e6da0e687eb7ab8d9427c9218a1096b1d4f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cvip_labs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9393786bd55d0930fd97f805cd8cd8ca7b5353454aa3c5f5ff11bb05987847f
MD5 e908d3e7c42a440f4df6558b74c26179
BLAKE2b-256 2f44e0a79b1d9cc36789c0ee6aa389615b17e3fc10bb52506d11d6577767422c

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