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.5.0.tar.gz (4.6 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.5.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cvip_labs-0.5.0.tar.gz
  • Upload date:
  • Size: 4.6 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.5.0.tar.gz
Algorithm Hash digest
SHA256 05e511085d86d0b6853a7798c4e19090db94b6ca0198d3b3c6ba49e011ff0797
MD5 992cc42609023a228e73079cf8dadcc9
BLAKE2b-256 b10dd3663c3f0a957e520caa4da4010e68fbc409fe4bcc871b6ff5eb5112cf30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cvip_labs-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f65c091f967f036ec2990688ddec9815c4f80fbf2174e68caa1739c7b872a7d
MD5 403819d90b988832862603eaa087acfb
BLAKE2b-256 f5cea086fa0571ee35c93a2e636700105a8717037eec2c52803bf6d6780809d3

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