| { | |
| "title": "Iris Flower Species Predictor", | |
| "description": "This Decision Tree model predicts the species of an Iris flower based on its sepal and petal measurements.", | |
| "model_type": "DecisionTreeClassifier", | |
| "framework": "scikit-learn", | |
| "author": "Sonia G", | |
| "license": "MIT", | |
| "input_schema": { | |
| "type": "object", | |
| "properties": { | |
| "sepal_length": { | |
| "type": "number", | |
| "description": "Sepal length in cm" | |
| }, | |
| "sepal_width": { | |
| "type": "number", | |
| "description": "Sepal width in cm" | |
| }, | |
| "petal_length": { | |
| "type": "number", | |
| "description": "Petal length in cm" | |
| }, | |
| "petal_width": { | |
| "type": "number", | |
| "description": "Petal width in cm" | |
| } | |
| }, | |
| "required": [ | |
| "sepal_length", | |
| "sepal_width", | |
| "petal_length", | |
| "petal_width" | |
| ] | |
| }, | |
| "output_schema": { | |
| "type": "string", | |
| "description": "Predicted Iris species (setosa, versicolor, or virginica)" | |
| }, | |
| "examples": [ | |
| { | |
| "input": { | |
| "sepal_length": 5.1, | |
| "sepal_width": 3.5, | |
| "petal_length": 1.4, | |
| "petal_width": 0.2 | |
| }, | |
| "output": "setosa" | |
| }, | |
| { | |
| "input": { | |
| "sepal_length": 6.7, | |
| "sepal_width": 3.1, | |
| "petal_length": 4.7, | |
| "petal_width": 1.5 | |
| }, | |
| "output": "versicolor" | |
| } | |
| ] | |
| } |