b

b / Anaconda_example / 1.0.0

README.md

Overview

This is an Example Anaconda Image Classifier Algorithm. It's to show-case how to export models from the Anaconda Platform. This algorithm has been copied over from [here](https://github.com/Anaconda-Platform/ae-training/tree/master/3-image-class

Usage

Input

ParameterDescription
imageAn image URL
top_k (optional)Number of predictions wanted

Output

ParameterDescription
predictionsDescription of field

Examples

Example 1.

Input:

  • Parameter 1: Wikipedia Apple Image URL
{
  "image": "https://upload.wikimedia.org/wikipedia/commons/9/92/95apple.jpeg"
}

Output:

{
  "predictions": [
    "pomegranate (score = 0.60206)",
    "buckeye, horse chestnut, conker (score = 0.08607)",
    "Granny Smith (score = 0.03930)",
    "fig (score = 0.00952)",
    "acorn (score = 0.00837)"
  ]
}

Example 2.

Input:

  • Parameter 1: Wikipedia Apple Image URL
  • Parameter 2: Number of predictions wanted
{
  "image": "https://upload.wikimedia.org/wikipedia/commons/9/92/95apple.jpeg",
  "top_k": 3
}

Output:

{
  "predictions": [
    "pomegranate (score = 0.60206)",
    "buckeye, horse chestnut, conker (score = 0.08607)",
    "Granny Smith (score = 0.03930)"
  ]
}