Skip to main content

Caispp

About

This package allows for high level ML model creation. It uses Keras with a Tensorflow backend, and was originally created to be used for the curriculum of USC's CAIS++ (Center for AI in Society, Student Branch).

Use Cases

The package currently supports Image Classification.

Installation

To install run pip install caispp. This package uses Tensorflow 2.0.

Example usage

You can see a jupyter notebook with ouputs in the examples/ directory. The notebook runs the code below:

from caispp import ImageDataset, ImageClassifier, Path

path = Path('example_dataset/') # Path to dataset
dataset = ImageDataset(path, show_distribution=True)

classifier = ImageClassifier(dataset)
classifier.train(epochs=10)

classifier.show_history()

classifier.test(show_distribution=True)

Dataset directory structure

├── example_dataset         
│   ├── test
│   │   ├── class1      # Directory with images of class1
│   │   ├── class2      # Directory with images of class2
│   │   └── ...       
│   ├── train
│   │   ├── class1      # Directory with images of class1
│   │   ├── class2      # Directory with images of class2
│   │   └── ...         
│   ├── valid           # Optional validation set    
│   │   ├── class1
│   │   ├── class2
│   │   └── ... 
└──  

Each of the test/, train/, and valid/ directories contain subdirectories for each class. In those subdirectories, put the images files of that class.

Build the package

To build the package run the build.sh script in the directory. The output is stored in dist/.

Release files for caispp 0.4.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for caispp 0.4.14
File Size Uploaded
caispp-0.4.14.tar.gz 7.4 kB Details

Release files / caispp-0.4.14.tar.gz

Download URL caispp-0.4.14.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9b38a0e3059f7a2419c27b22600f6e599e1939c12d55acd12d4b13ecfd21cc3c
BLAKE2b-256 checksum
How to use checksums
10de6b7f326ad806a235027f235af7e1caf14688b25680f093d0ac7d7c034a5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.4.14 This release

1 release file

0.4.12

1 release file

0.4.8

1 release file

0.4.6

2 release files

0.4.4

1 release file

0.4.2

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page